MySQL works very well in combination of various programming languages like PERL, C, C++, JAVA and
PHP. Out of these languages, PHP is the most popular one because of its web application
This tutorial focuses heavily on using MySQL in a PHP environment.
PHP provides various functions to access MySQL database and to manipulate data records inside
MySQL database. You would require to call PHP functions in the same way you call any other PHP
The PHP functions for use with MySQL have the following general format:
The second part of the function name is specific to the function, usually a word that describes
what the function does. The Below are two of the functions which we will use in our tutorial
Following example shows a generic sysntax of PHP to call any MySQL function.
<title>PHP with MySQL</title>
$retval = mysql_function(value, [value,...]);
if( !$retval )
die ( "Error: a related error message" );
// Otherwise MySQL or PHP Statements
Starting from next chapter we will see all the important MySQL functionality along with PHP.
Your Query was successfully sent!