PHP mysql_connect() May 24, 2012 Pramod T P It open a connection to a MySQL Server Example <?php $conn = mysql_connect(‘localhost’, ‘root’, ‘password’); echo mysql_client_encoding($conn); mysql_close($conn); ?>