SlideShare a Scribd company logo
Function & Description PHP
mysqli_affected_rows
It returns the number of affected rows in the previous SELECT, INSERT,
UPDATE, REPLACE, or DELETE query.
4
mysqli_autocommit
It is used to turn off or turn of auto-committing database modifications.
4.3.0
mysqli_begin_transaction
It is used to start a MySQL transaction.
4.3.0
mysqli_change_user
It is used to change the user of the current/given database connection.
4.3.0
mysqli_close
It is used to close MySQLi connection
4
mysqli_commit
It is used to save the database modifications.
5
mysqli_connect
It opens a connection to a MySQLi Server
4
mysqli_connect_error
It returns the description of the error from the last connection
5
mysqli_debug
It is used to performs debugging operations
5
mysqli_dump_debug_info
It is used dumps debugging info into the log
5
mysqli_error
It returns the last error description for the most recent statement
4
mysqli_error_list
It returns a list of errors from the last statement
4
mysqli_field_count
It returns the number of columns/field for the most recent query.
5
mysqli_get_charset
It returns a character set object.
4
mysqli_get_client_info
It returns the MySQL client library version.
5
mysqli_get client_stats
It returns statistics about client per-process.
5
mysqli_get_client_version
It returns the MySQLi client library version.
5.1.0
mysqli_get_connection_stats
It returns statistics about the client connection.
5
mysqli_get_host_info
It returns the MySQLi server hostname and the connection type.
5
mysqli_get_server_info
It returns the MySQLi server information.
5
mysqli_get_server_version
It returns the MySQLi server version.
5
mysqli_get_warnings
It returns the errors generated by the last executed query.
5
mysqli_info
It returns information about the most recently executed query.
5
mysqli_init
It returns an object to use with the mysqli_real_connect() function.
5
mysqli_insert_id
It returns an id of last query.
5
mysqli_kill
This function asks to the server to kill MySQLi thread specified by the
process-id parameter.
5
mysqli_more_results
This function checks if there are more results from a multi query.
5
mysqli_multi_query
It used to separate the queries with a semicolon against the database.
5
mysqli_next_result
It prepares the next result set from mysqli_multi_query().
5
mysqli_options
It is used to sets connect options and change connection settings.
5
mysqli_ping
It is used to pings a server connection and reconnect to server if
connection is lost.
5
mysqli_prepare
It performs a MySQL prepared query (with parameter markers) against
the database.
5
mysqli_query
It performs a query against the database.
5
mysqli_real_connect
This function opens a new connection to the MySQLi
5
mysqli_real_escape_string
This function escapes special characters in a string for an SQL statement.
5
mysqli_real_query
This function executes an SQL query.
5
mysqli_refresh
This function refreshes tables or caches, or resets the replication server
information.
5
mysqli_rollback
This function rolls back the current transaction for the specified database
connection.
5
mysqli_select_db
This function changes the default database.
5
mysqli_set_charset
It function sets the default character set.
5
mysqli_sqlstate
This function returns the SQLSTATE error code for the last error.
5
mysqli_ssl_set
This function creates an SSL connection.
5
mysqli_stat
This function returns the current system status.
5
mysqli_stmt_init
This function initializes a statement and returns an object suitable for
mysqli_stmt_prepare().
5
mysqli_thread _id
This function returns the current connection thread ID.
5
mysqli_thread_safe
This function verifies whether the client library is compiled as thread-safe.
5
mysqli_use_result
It starts the retrieval of the resultset from the previously executed query.
5
mysqli_warning_count
It returns the number of errors generated by the last executed query.
5
mysqli_data_seek
It is used to move internal result pointer.
4
mysqli_fetch all 4
It is used to fetchs all result rows and returns the result set as an
associative array
mysqli_fetch array
It is used to fetchs a result row as an associative array
5
mysqli_fetch_assoc
It is used to fetches a result row as an associative array.
5.3
mysqli_fetch_field
It is used to returns the next column in the result set as an object.
4
mysqli_fetch_field_direct
It returns the definition information of the specified (as an integer
argument) column/field in the form of an object.
4
mysqli_fetch_fields
It is used to returns an array of objects.
4
mysqli_fetch_lengths
It is used to returns the length of the fields in the result.
4
mysqli_fetch_object
It returns an object.
5
mysqli_fetch_row
It returns the contents of the current row of a result as an array of strings.
5
mysqli_field_seek
This function sets the column cursor to the given column offset.
5
mysqli_field_tell
It returns returns the position of the field cursor.
5
mysqli_free_result
It frees the memory associated with the result.
5
mysqli_num_fields
It returns the number of fields in a result set.
5
mysqli_num_rows
It returns the number of rows in a result set.
5
mysqli_stmt_sqlstate
It returns the SQLSTATE error from the last statement.
5
mysqli_stmt_affected_rows
It returns the number of rows affected (changed, deleted, inserted) by the
recently executed statement.
5
mysqli_stmt_attr_get
It returns the current value of the given attribute of a statement.
5
mysqli_stmt_attr_set
Using this function can set various attributes to the statement which
changes its behaviour.
5
mysqli_stmt_bind_param
It bind variables to the parameter markers of a prepared statement.
5
mysqli_stmt_bind_result
It binds the columns of a result object to variables.
5
mysqli_stmt_close
It closes a statement object.
5
mysqli_stmt_data_seek
It is used to seek through the rows of a result object.
5
mysqli_stmt_errno
It returns the code of the error occurred during the execution of the last
statement.
5
mysqli_stmt_error
It returns the description of the error occurred during the execution of the
last statement.
5
mysqli_stmt_execute
It executes a statement.
5
mysqli_stmt_fetch
It fetches the columns of the result into the specified variables.
5
mysqli_stmt_field_count
It returns the number of fields in the result of the given statement.
5
mysqli_stmt_free_result
It is used to free the memory in which the result of the a statement is
stored.
5
mysqli_stmt_get_result
It returns the result of a statement.
5
mysqli_stmt_num_rows
It returns the number of rows in the result of a statement.
5
mysqli_stmt_param_count
It returns the number of parameter markers in a prepared statement.
5
mysqli_stmt_prepare
It prepares an SQL statement for execution, you can use parameter
markers ("?") in this query instead of values.
5
mysqli_stmt_reset
It is used to resets the errors, unbuffered result sets and data sent,
though a statement.
5
mysqli_stmt_result_metadata
It returns a metadata object which holds information about the result of a
statement.
5
mysqli_stmt_send_long_data
If one of the columns of table is of TEXT of BLOB type,this function is
used to send data to that column in chunks.
5
mysqli_stmt_store_result
It is used to store the result of a statement object locally.
5

More Related Content

PPTX
Computer Science:Sql Set Operation
PPT
Php and MySQL Web Development
PPTX
Guide To Mastering The MySQL Query Execution Plan
PPTX
MYSQL join
PPT
Oracle sql joins
PPTX
MYSQL using set operators
PPTX
MYSql manage db
PPTX
Sql modifying data - MYSQL part I
Computer Science:Sql Set Operation
Php and MySQL Web Development
Guide To Mastering The MySQL Query Execution Plan
MYSQL join
Oracle sql joins
MYSQL using set operators
MYSql manage db
Sql modifying data - MYSQL part I

What's hot (15)

PDF
Bt0075 rdbms with mysql 2
PPTX
Oracle: Joins
PPTX
MYSQL single rowfunc-multirowfunc-groupby-having
PPTX
PPTX
MySql: Queries
DOC
Devry bis 155 week 2 quiz new
PDF
Sql subquery
PDF
Group by clause mod
DOC
Sql Queries
PDF
[1062BPY12001] Data analysis with R / April 26
PPTX
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
PPTX
Oracle views
PDF
Sql having clause
PPTX
Union based sql injection by Urdu Tutorials Point
PPTX
Mysql creating stored function
Bt0075 rdbms with mysql 2
Oracle: Joins
MYSQL single rowfunc-multirowfunc-groupby-having
MySql: Queries
Devry bis 155 week 2 quiz new
Sql subquery
Group by clause mod
Sql Queries
[1062BPY12001] Data analysis with R / April 26
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Oracle views
Sql having clause
Union based sql injection by Urdu Tutorials Point
Mysql creating stored function
Ad

Similar to Db function (20)

PPTX
Php and database functionality
PPTX
Php and database functionality
PPTX
PHP and database functionality
PPT
Lect_04b_PhpMysqlKEY PERFORMANCE INDICATOR FOR ICT-UNIT (new).ppt
PPT
Php with MYSQL Database
PDF
PHP with MySQL
PPT
Synapse india reviews on php and sql
PDF
Web app development_crud_13
PDF
Mysql connection
PPTX
MS SQL SERVER: Microsoft sequence clustering and association rules
PPTX
MS SQL SERVER: Microsoft sequence clustering and association rules
PDF
Php verses MySQL
PDF
Php verses MySQL
PDF
PHP and Mysql
PPTX
Php verses my sql
PDF
RubyOnRails-Cheatsheet-BlaineKendall
PDF
RubyOnRails-Cheatsheet-BlaineKendall
PPT
Migrating from PHP 4 to PHP 5
PPT
PHP - Getting good with MySQL part II
PDF
Fnt Software Solutions Pvt Ltd Placement Papers - PHP Technology
Php and database functionality
Php and database functionality
PHP and database functionality
Lect_04b_PhpMysqlKEY PERFORMANCE INDICATOR FOR ICT-UNIT (new).ppt
Php with MYSQL Database
PHP with MySQL
Synapse india reviews on php and sql
Web app development_crud_13
Mysql connection
MS SQL SERVER: Microsoft sequence clustering and association rules
MS SQL SERVER: Microsoft sequence clustering and association rules
Php verses MySQL
Php verses MySQL
PHP and Mysql
Php verses my sql
RubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendall
Migrating from PHP 4 to PHP 5
PHP - Getting good with MySQL part II
Fnt Software Solutions Pvt Ltd Placement Papers - PHP Technology
Ad

More from JIGAR MAKHIJA (20)

PPTX
Php gd library
PPTX
Php pattern matching
PPTX
Php cookies
PPTX
Php functions
PPTX
Php sessions
PPTX
Php server variables
PDF
C++ version 1
PDF
C++ Version 2
PPTX
SAP Ui5 content
DOCX
Solution doc
PDF
Overview on Application protocols in Internet of Things
PDF
125 green iot
PDF
Msp430 g2 with ble(Bluetooth Low Energy)
PDF
Embedded system lab work
PPTX
Presentation on iot- Internet of Things
PPTX
PDF
Learn Japanese -Basic kanji 120
PPTX
View Alignment Techniques
DOCX
Letters (complaints & invitations)
PDF
Letter Writing invitation-letter
Php gd library
Php pattern matching
Php cookies
Php functions
Php sessions
Php server variables
C++ version 1
C++ Version 2
SAP Ui5 content
Solution doc
Overview on Application protocols in Internet of Things
125 green iot
Msp430 g2 with ble(Bluetooth Low Energy)
Embedded system lab work
Presentation on iot- Internet of Things
Learn Japanese -Basic kanji 120
View Alignment Techniques
Letters (complaints & invitations)
Letter Writing invitation-letter

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Trump Administration's workforce development strategy
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Structure & Organelles in detailed.
PPTX
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
Microbial diseases, their pathogenesis and prophylaxis
Chinmaya Tiranga quiz Grand Finale.pdf
Weekly quiz Compilation Jan -July 25.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Final Presentation General Medicine 03-08-2024.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
GDM (1) (1).pptx small presentation for students
01-Introduction-to-Information-Management.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
RMMM.pdf make it easy to upload and study
A systematic review of self-coping strategies used by university students to ...
Trump Administration's workforce development strategy
Computing-Curriculum for Schools in Ghana
Cell Structure & Organelles in detailed.
Pharma ospi slides which help in ospi learning

Db function

  • 1. Function & Description PHP mysqli_affected_rows It returns the number of affected rows in the previous SELECT, INSERT, UPDATE, REPLACE, or DELETE query. 4 mysqli_autocommit It is used to turn off or turn of auto-committing database modifications. 4.3.0 mysqli_begin_transaction It is used to start a MySQL transaction. 4.3.0 mysqli_change_user It is used to change the user of the current/given database connection. 4.3.0 mysqli_close It is used to close MySQLi connection 4 mysqli_commit It is used to save the database modifications. 5 mysqli_connect It opens a connection to a MySQLi Server 4 mysqli_connect_error It returns the description of the error from the last connection 5 mysqli_debug It is used to performs debugging operations 5 mysqli_dump_debug_info It is used dumps debugging info into the log 5 mysqli_error It returns the last error description for the most recent statement 4 mysqli_error_list It returns a list of errors from the last statement 4
  • 2. mysqli_field_count It returns the number of columns/field for the most recent query. 5 mysqli_get_charset It returns a character set object. 4 mysqli_get_client_info It returns the MySQL client library version. 5 mysqli_get client_stats It returns statistics about client per-process. 5 mysqli_get_client_version It returns the MySQLi client library version. 5.1.0 mysqli_get_connection_stats It returns statistics about the client connection. 5 mysqli_get_host_info It returns the MySQLi server hostname and the connection type. 5 mysqli_get_server_info It returns the MySQLi server information. 5 mysqli_get_server_version It returns the MySQLi server version. 5 mysqli_get_warnings It returns the errors generated by the last executed query. 5 mysqli_info It returns information about the most recently executed query. 5 mysqli_init It returns an object to use with the mysqli_real_connect() function. 5 mysqli_insert_id It returns an id of last query. 5
  • 3. mysqli_kill This function asks to the server to kill MySQLi thread specified by the process-id parameter. 5 mysqli_more_results This function checks if there are more results from a multi query. 5 mysqli_multi_query It used to separate the queries with a semicolon against the database. 5 mysqli_next_result It prepares the next result set from mysqli_multi_query(). 5 mysqli_options It is used to sets connect options and change connection settings. 5 mysqli_ping It is used to pings a server connection and reconnect to server if connection is lost. 5 mysqli_prepare It performs a MySQL prepared query (with parameter markers) against the database. 5 mysqli_query It performs a query against the database. 5 mysqli_real_connect This function opens a new connection to the MySQLi 5 mysqli_real_escape_string This function escapes special characters in a string for an SQL statement. 5 mysqli_real_query This function executes an SQL query. 5 mysqli_refresh This function refreshes tables or caches, or resets the replication server information. 5
  • 4. mysqli_rollback This function rolls back the current transaction for the specified database connection. 5 mysqli_select_db This function changes the default database. 5 mysqli_set_charset It function sets the default character set. 5 mysqli_sqlstate This function returns the SQLSTATE error code for the last error. 5 mysqli_ssl_set This function creates an SSL connection. 5 mysqli_stat This function returns the current system status. 5 mysqli_stmt_init This function initializes a statement and returns an object suitable for mysqli_stmt_prepare(). 5 mysqli_thread _id This function returns the current connection thread ID. 5 mysqli_thread_safe This function verifies whether the client library is compiled as thread-safe. 5 mysqli_use_result It starts the retrieval of the resultset from the previously executed query. 5 mysqli_warning_count It returns the number of errors generated by the last executed query. 5 mysqli_data_seek It is used to move internal result pointer. 4 mysqli_fetch all 4
  • 5. It is used to fetchs all result rows and returns the result set as an associative array mysqli_fetch array It is used to fetchs a result row as an associative array 5 mysqli_fetch_assoc It is used to fetches a result row as an associative array. 5.3 mysqli_fetch_field It is used to returns the next column in the result set as an object. 4 mysqli_fetch_field_direct It returns the definition information of the specified (as an integer argument) column/field in the form of an object. 4 mysqli_fetch_fields It is used to returns an array of objects. 4 mysqli_fetch_lengths It is used to returns the length of the fields in the result. 4 mysqli_fetch_object It returns an object. 5 mysqli_fetch_row It returns the contents of the current row of a result as an array of strings. 5 mysqli_field_seek This function sets the column cursor to the given column offset. 5 mysqli_field_tell It returns returns the position of the field cursor. 5 mysqli_free_result It frees the memory associated with the result. 5 mysqli_num_fields It returns the number of fields in a result set. 5
  • 6. mysqli_num_rows It returns the number of rows in a result set. 5 mysqli_stmt_sqlstate It returns the SQLSTATE error from the last statement. 5 mysqli_stmt_affected_rows It returns the number of rows affected (changed, deleted, inserted) by the recently executed statement. 5 mysqli_stmt_attr_get It returns the current value of the given attribute of a statement. 5 mysqli_stmt_attr_set Using this function can set various attributes to the statement which changes its behaviour. 5 mysqli_stmt_bind_param It bind variables to the parameter markers of a prepared statement. 5 mysqli_stmt_bind_result It binds the columns of a result object to variables. 5 mysqli_stmt_close It closes a statement object. 5 mysqli_stmt_data_seek It is used to seek through the rows of a result object. 5 mysqli_stmt_errno It returns the code of the error occurred during the execution of the last statement. 5 mysqli_stmt_error It returns the description of the error occurred during the execution of the last statement. 5 mysqli_stmt_execute It executes a statement. 5
  • 7. mysqli_stmt_fetch It fetches the columns of the result into the specified variables. 5 mysqli_stmt_field_count It returns the number of fields in the result of the given statement. 5 mysqli_stmt_free_result It is used to free the memory in which the result of the a statement is stored. 5 mysqli_stmt_get_result It returns the result of a statement. 5 mysqli_stmt_num_rows It returns the number of rows in the result of a statement. 5 mysqli_stmt_param_count It returns the number of parameter markers in a prepared statement. 5 mysqli_stmt_prepare It prepares an SQL statement for execution, you can use parameter markers ("?") in this query instead of values. 5 mysqli_stmt_reset It is used to resets the errors, unbuffered result sets and data sent, though a statement. 5 mysqli_stmt_result_metadata It returns a metadata object which holds information about the result of a statement. 5 mysqli_stmt_send_long_data If one of the columns of table is of TEXT of BLOB type,this function is used to send data to that column in chunks. 5 mysqli_stmt_store_result It is used to store the result of a statement object locally. 5