PHP MySQL ConnectSince PHP 5.5, mysql_connect() extension is deprecated. Now it is recommended to use one of the 2 alternatives.
PHP mysqli_connect()PHP mysqli_connect() function is used to connect with MySQL database. It returns resource if connection is established or null. SyntaxPHP mysqli_close()PHP mysqli_close() function is used to disconnect with MySQL database. It returns true if connection is closed or false. SyntaxPHP MySQL Connect ExampleExampleOutput: Connected successfully Next TopicPHP MySQL Create Database |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India