Browsing:

Tag: mysql database

MySQL Connection Using PHP Script

PHP provides mysql_connect() function to open a database connection. This function takes three parameters and returns a MySQL link identifier on success or FALSE on failure. Syntax mysql_connect(server,user,password); Server Optional − The host name running the database server. If not specified, then the default value will be localhost:3306. User Optional − The username accessing the database. If not specified, then the default will be the name of the user that Read more…