Don't forget to hit the ⭐ if you like this repo.
Here are the answers to the questions:
- a) Create, Read, Update, Delete
- a) MySQLi
- a) To establish a connection to a MySQL database
- a)
mysqli_query()
- a) To fetch a row from a database result as an associative array
- a) Using
mysqli_num_rows()
- a) To retrieve the ID generated by the previous INSERT query
- a) UPDATE
- a) DELETE
- a) To get the number of rows affected by a query
- a)
mysqli_real_escape_string()
- a) Using
mysqli_error()
- a) To close a database connection
- d)
mysqli_table_exists()
- a) Using
mysqli_affected_rows()
- d) All of the above
- a) To commit a transaction
- a) To rollback a transaction
- c)
mysqli_connect_error()
- a) To prevent SQL injection and improve performance
- a)
mysqli_stmt_bind_param()
- a) To execute a prepared statement
- a) To get the result set of a prepared statement
- a) Using
mysqli_stmt_get_result()
- a)
mysqli_stmt_fetch()
- a) To close a prepared statement
- a)
mysqli_error()
- a) To fetch a row from a database result as an enumerated array
- a) To fetch a row from a database result as an array (both associative and enumerated)
- a) To fetch a row from a database result as an object
- a)
mysqli_num_rows()
- a) To move the internal result pointer to a specified row number
- a) To retrieve the number of fields in a result set
- a)
mysqli_fetch_field()
- a) To free the memory associated with a result set
- a)
mysqli_insert_id()
- a) To escape special characters in a string to prevent SQL injection
- a) By checking the return value of
mysqli_query()
- a) To retrieve the number of rows in a result set
- a)
mysqli_fetch_row()
- a) To retrieve the metadata of a field in a result set
- a) Using
mysqli_field_count()
- a) To fetch all rows from a result set as an array
- c)
mysqli_fetch_array()
- a) To store the entire result set from a query in memory
- a) Using
mysqli_affected_rows()
- a) To execute multiple SQL queries in a single call
- b) Using
mysqli_store_result()
- a) To retrieve the result set of a query incrementally
- c)
mysqli_store_result()
Please create an Issue for any improvements, suggestions or errors in the content.
You can also contact me using Linkedin for any other queries or feedback.