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

What's hot (15)

PDF
Bt0075 rdbms with mysql 2
Techglyphs
 
PPTX
Oracle: Joins
DataminingTools Inc
 
PPTX
MYSQL single rowfunc-multirowfunc-groupby-having
Ahmed Farag
 
PPTX
Adv excel
Piyatida Chootiwat
 
PPTX
MySql: Queries
DataminingTools Inc
 
DOC
Devry bis 155 week 2 quiz new
uopassignment
 
PDF
Sql subquery
Vivek Singh
 
PDF
Group by clause mod
Nitesh Singh
 
DOC
Sql Queries
webicon
 
PDF
[1062BPY12001] Data analysis with R / April 26
Kevin Chun-Hsien Hsu
 
PPTX
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Oracle views
Balqees Al.Mubarak
 
PDF
Sql having clause
Vivek Singh
 
PPTX
Union based sql injection by Urdu Tutorials Point
Al Zarqali
 
PPTX
Mysql creating stored function
Prof.Nilesh Magar
 
Bt0075 rdbms with mysql 2
Techglyphs
 
Oracle: Joins
DataminingTools Inc
 
MYSQL single rowfunc-multirowfunc-groupby-having
Ahmed Farag
 
MySql: Queries
DataminingTools Inc
 
Devry bis 155 week 2 quiz new
uopassignment
 
Sql subquery
Vivek Singh
 
Group by clause mod
Nitesh Singh
 
Sql Queries
webicon
 
[1062BPY12001] Data analysis with R / April 26
Kevin Chun-Hsien Hsu
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
baabtra.com - No. 1 supplier of quality freshers
 
Oracle views
Balqees Al.Mubarak
 
Sql having clause
Vivek Singh
 
Union based sql injection by Urdu Tutorials Point
Al Zarqali
 
Mysql creating stored function
Prof.Nilesh Magar
 

Similar to Db function (20)

PPTX
Php and database functionality
Sayed Ahmed
 
PPTX
Php and database functionality
Sayed Ahmed
 
PPTX
PHP and database functionality
Sayed Ahmed
 
PDF
Apis php-en sql .
Vandan Kashyap
 
PPT
Migrating from PHP 4 to PHP 5
John Coggeshall
 
PPTX
MySQL Record Operations
Jamshid Hashimi
 
PPT
PHP 5 + MySQL 5 = A Perfect 10
Adam Trachtenberg
 
PPT
Lect_04b_PhpMysqlKEY PERFORMANCE INDICATOR FOR ICT-UNIT (new).ppt
SenzotaSemakuwa
 
PPTX
3-Chapter-Edit.pptx debre tabour university
alemunuruhak9
 
PPTX
Learn PHP Lacture2
ADARSH BHATT
 
PPT
Synapse india reviews on php and sql
saritasingh19866
 
PDF
Php summary
Michelle Darling
 
PPTX
UNIT V (5).pptx
DrDhivyaaCRAssistant
 
PPTX
Database Connectivity MYSQL by Dr.C.R.Dhivyaa Kongu Engineering College
Dhivyaa C.R
 
PPTX
7. PHP and gaghhgashgfsgajhfkhshfasMySQL.pptx
berihun18
 
DOCX
100 PHP question and answer
Sandip Murari
 
PPTX
lecture 7 - Introduction to MySQL with PHP.pptx
AOmaAli
 
PPTX
PHP Database Programming Basics -- Northeast PHP
Dave Stokes
 
Php and database functionality
Sayed Ahmed
 
Php and database functionality
Sayed Ahmed
 
PHP and database functionality
Sayed Ahmed
 
Apis php-en sql .
Vandan Kashyap
 
Migrating from PHP 4 to PHP 5
John Coggeshall
 
MySQL Record Operations
Jamshid Hashimi
 
PHP 5 + MySQL 5 = A Perfect 10
Adam Trachtenberg
 
Lect_04b_PhpMysqlKEY PERFORMANCE INDICATOR FOR ICT-UNIT (new).ppt
SenzotaSemakuwa
 
3-Chapter-Edit.pptx debre tabour university
alemunuruhak9
 
Learn PHP Lacture2
ADARSH BHATT
 
Synapse india reviews on php and sql
saritasingh19866
 
Php summary
Michelle Darling
 
UNIT V (5).pptx
DrDhivyaaCRAssistant
 
Database Connectivity MYSQL by Dr.C.R.Dhivyaa Kongu Engineering College
Dhivyaa C.R
 
7. PHP and gaghhgashgfsgajhfkhshfasMySQL.pptx
berihun18
 
100 PHP question and answer
Sandip Murari
 
lecture 7 - Introduction to MySQL with PHP.pptx
AOmaAli
 
PHP Database Programming Basics -- Northeast PHP
Dave Stokes
 
Ad

More from JIGAR MAKHIJA (20)

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

Recently uploaded (20)

PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Introduction to Indian Writing in English
Trushali Dodiya
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Horarios de distribución de agua en julio
pegazohn1978
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
infertility, types,causes, impact, and management
Ritu480198
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 

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