mysql_affected_rows PHP 3.0

int mysql_affected_rows([int link_identifier])

 

Gets number of affected rows in previous MySQL operation.

mysql_close PHP 3.0

bool mysql_close([int link_identifier])

 

Closes a MySQL connection.

mysql_connect PHP 3.0

resource mysql_connect([string hostname[:port][:/path/to/socket][, string username[, string password[, bool new[, int flags]]]]])

 

Opens a connection to a MySQL server.

mysql_create_db PHP 3.0

bool mysql_create_db(string database_name[, int link_identifier])

 

Creates a MySQL database.

mysql_data_seek PHP 3.0

bool mysql_data_seek(int result, int row_number)

 

Moves internal result pointer.

mysql_db_query PHP 3.0

resource mysql_db_query(string database_name, string query[, int link_identifier])

 

Sends an SQL query to a MySQL database.

mysql_drop_db PHP 3.0

bool mysql_drop_db(string database_name[, int link_identifier])

 

Drops (deletes) a MySQL database.

mysql_errno PHP 3.0

int mysql_errno([int link_identifier])

 

Returns the number of the error message from previous MySQL operation.

mysql_error PHP 3.0

string mysql_error([int link_identifier])

 

Returns the text of the error message from previous MySQL operation.

mysql_escape_string PHP 4.0.3

string mysql_escape_string(string to_be_escaped)

 

Escapes string for MySQL query.

mysql_fetch_array PHP 3.0

array mysql_fetch_array(int result[, int result_type])

 

Fetches a result row as an array (associative, numeric, or both).

mysql_fetch_assoc PHP 4.0.3

array mysql_fetch_assoc(int result)

 

Fetches a result row as an associative array.

mysql_fetch_field PHP 3.0

object mysql_fetch_field(int result[, int field_offset])

 

Gets column information from a result and returns it as an object.

mysql_fetch_lengths PHP 3.0

array mysql_fetch_lengths(int result)

 

Gets maximum data size of each column in a result.

mysql_fetch_object PHP 3.0

object mysql_fetch_object(int result[, int result_type])

 

Fetches a result row as an object.

mysql_fetch_row PHP 3.0

array mysql_fetch_row(int result)

 

Gets a result row as an enumerated array.

mysql_field_flags PHP 3.0

string mysql_field_flags(int result, int field_offset)

 

Gets the flags associated with the specified field in a result.

mysql_field_len PHP 3.0

int mysql_field_len(int result, int field_offset)

 

Returns the length of the specified field.

mysql_field_name PHP 3.0

string mysql_field_name(int result, int field_index)

 

Gets the name of the specified field in a result.

mysql_field_seek PHP 3.0

bool mysql_field_seek(int result, int field_offset)

 

Sets result pointer to a specific field offset.

mysql_field_table PHP 3.0

string mysql_field_table(int result, int field_offset)

 

Gets name of the table the specified field is in.

mysql_field_type PHP 3.0

string mysql_field_type(int result, int field_offset)

 

Gets the type of the specified field in a result.

mysql_free_result PHP 3.0

bool mysql_free_result(int result)

 

Frees result memory.

mysql_get_client_info PHP 4.0.5

string mysql_get_client_info(void)

 

Returns a string that represents the client library version.

mysql_get_host_info PHP 4.0.5

string mysql_get_host_info([int link_identifier])

 

Returns a string describing the type of connection in use, including the server host name.

mysql_get_proto_info PHP 4.0.5

int mysql_get_proto_info([int link_identifier])

 

Returns the protocol version used by current connection.

mysql_get_server_info PHP 4.0.5

string mysql_get_server_info([int link_identifier])

 

Returns a string that represents the server version number.

mysql_info PHP 4.3.0

string mysql_info([int link_identifier])

 

Returns a string containing information about the most recent query.

mysql_insert_id PHP 3.0

int mysql_insert_id([int link_identifier])

 

Gets the ID generated from the previous INSERT operation.

mysql_list_dbs PHP 3.0

resource mysql_list_dbs([int link_identifier])

 

Lists databases available on a MySQL server.

mysql_list_fields PHP 3.0

resource mysql_list_fields(string database_name, string table_name[, int link_identifier])

 

Lists MySQL result fields.

mysql_list_processes PHP 4.3.0

resource mysql_list_processes([int link_identifier])

 

Returns a result set describing the current server threads.

mysql_list_tables PHP 3.0

resource mysql_list_tables(string database_name[, int link_identifier])

 

Lists tables in a MySQL database.

mysql_num_fields PHP 3.0

int mysql_num_fields(int result)

 

Gets number of fields in a result.

mysql_num_rows PHP 3.0

int mysql_num_rows(int result)

 

Gets number of rows in a result.

mysql_pconnect PHP 3.0

resource mysql_pconnect([string hostname[:port][:/path/to/socket][, string username[, string password[, int flags]]]])

 

Opens a persistent connection to a MySQL server.

mysql_ping PHP 4.3.0

bool mysql_ping([int link_identifier])

 

Pings a server connection or reconnects if there is no connection.

mysql_query PHP 3.0

resource mysql_query(string query[, int link_identifier][, int result_mode])

 

Sends an SQL query to a MySQL database.

mysql_real_escape_string PHP 4.3.0

string mysql_real_escape_string(string to_be_escaped[, int link_identifier])

 

Escapes special characters in a string for use in a SQL statement, taking into account the current charset of the connection.

mysql_result PHP 3.0

mixed mysql_result(int result, int row[, mixed field])

 

Gets result data.

mysql_select_db PHP 3.0

bool mysql_select_db(string database_name[, int link_identifier])

 

Selects a MySQL database.

mysql_stat PHP 4.3.0

string mysql_stat([int link_identifier])

 

Returns a string containing status information.

mysql_thread_id PHP 4.3.0

int mysql_thread_id([int link_identifier])

 

Returns the thread ID of current connection.

mysql_unbuffered_query PHP 4.0.6

resource mysql_unbuffered_query(string query[, int link_identifier][, int result_mode])

 

Sends an SQL query to MySQL, without fetching and buffering the result rows.