Tag Archives: mysql database connection tutorials

MySQL Database Connection using php

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