The novice Xiaobai takes you to learn the MySQL PHP grammar series

For MySQL PHP syntax, I am a novice, but it does not affect the mood of sharing with you. I hope you will bear more! ! !

MySQL is available in many languages, including PERL, C, C++, JAVA and PHP. Among these languages, MySQL is the most widely used in PHP web development.

PHP provides multiple ways to access and manipulate Mysql database records. The PHP Mysqli function format is as follows:

mysqli_connect($connect);
mysqli_query( $connect , "SQL statement" );
mysqli_fetch_array()
mysqli_close()

The function part of the above format describes the function of the mysql function, such as:

<?php
$retval = mysqli_function(value, [value,...]);
if( !$retval )
{
   die ( "just basic info" );
}
// Other MySQL or PHP statements 
?>

The following example shows the syntax for calling mysql functions in PHP:

<?php
$retval = mysqli_function(value, [value,...]);
if( !$retval )
{
   die ( "just basic info" );
}
// Other MySQL or PHP statements 
?>

Leave a Comment

Your email address will not be published. Required fields are marked *