Chapter 15 - MySQL Integration Flashcards
Function to connect to MySQL database
mysql_connect()
Function to select MySQL database
mysql_select_db()
Arguments of mysql_select_db()
database name, link identifier
mysql_pconnect()
Opens a persistent connection
mysql_change_user()
Changes the user logged in
mysql_list_dbs()
lists databases
mysql_list_tables()
Lists tables
mysql_fetch_…()
assoc = one result row as an associative array, row= one result row as a numerically indexed array
mysql_affected_rows()
returns the number of rows affected by the query
mysql_num_row()
Returns number of rows
mysql_fetch_object()
Returns result row as object
mysql_fetch_field()
gets column information from a result and returns it as an object
mysql_field_name()
Gets the name of a specified field
mysql_list_fields() or mysql_field_seek()
Sets result pointer to a specified field offset
mysql_num_fields()
gets the number of fields in a result