PHP MySQL: Connecting to Database Use mysql_connect()Tag: database, mysql, mysql_connect Category: PHP Databasepost: 28 Feb 2008 read: 2,196 php mysql basic step by step tutorial - part 1: In here, we are going to talk about mysql_connect () where it is used to do the connection to MySQL database program. Here is basic syntax:
Mysql_connect() will get the correct value if it is succeed but false if it is fail. Example:
Create a file named connect.php within www. Point your browser to http://localhost/connect.php. May you see like this:
|
| | Give Your Opinion | Recommend |
|


