MySQL Functions
MySQL
&reftitle.intro;
These functions allow you to access MySQL database servers.
More information about MySQL can be found at &url.mysql;.
Documentation for MySQL can be found at &url.mysql.docs;.
&reftitle.required;
In order to have these functions available, you must compile PHP with
MySQL support.
&reference.mysql.configure;
&reference.mysql.ini;
&reftitle.resources;
There are two resource types used in the MySQL module. The first one
is the link identifier for a database connection, the second a resource
which holds the result of a query.
&reference.mysql.constants;
&reftitle.examples;
This simple example shows how to connect, execute a query, print
resulting rows and disconnect from a MySQL database.
MySQL extension overview example
\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
print "\t\n";
foreach ($line as $col_value) {
print "\t\t$col_value | \n";
}
print "\t
\n";
}
print "\n";
/* Free resultset */
mysql_free_result($result);
/* Closing connection */
mysql_close($link);
?>
]]>
&reference.mysql.functions;