Basic PHP MYSQL Functions
Following are some <a href="http://www.bodhosting.com/ " target="_blank" title=" PHP MYSQL " style="color:#000000;text-decoration:none;">PHP MYSQL</a> functions -
a)mysql_connect(MySQL server name,username,password) - opens a connection to a MySQL server.
b)mysql_select_db(database name,connection identifier) - selects a database residing on the MySQL server. The database name parameter referes to an active database on the MySQL server that was opened with the mysql_connect function. The connection identifier is a reference to the current MySQL connection.
c)mysql_query(sql query) - sends a query to the currently active database.
d)mysql_fetch_array(resourse result) - Returns an array that corresponds to the fetched row and moves the internal data pointer ahead.
e)mysql_affected_rows(resourse result) - determines the number of rows affected by the previous SQL operation.
f) mysql_close(link_identifier) - closes MySQL connection.
|