MySQL Database Connection using php

By | January 31, 2014

php uses mysql_connect function to open the database this function will return true or false

Syntax
——

mysql_connect(server,user,passwd);

Server–its actualy hostname running database server

this value as localhost or localhost:3306

user-username for accessing the dtabase
passwd-password of the database

Examples