Saturday, August 6, 2016

MySQL Connection using PHP Script

PHP provides mysql_connect() function to open a database connection.This function takes five parameters and returns a MySQL link identifier on success or FALSE on failure.

You can disconnect from MySQL database anytime using another PHP function mysql_close(). This function takes a single parameter, which is a connection returned by mysql_connect() function.

No comments:

Post a Comment