simple syntax database connection in php to mysql
<?php
$conn=mysql_connect(servername,username,password);
mysql_select_db("dbname",$conn);
?>
In paramerters like servername is which server to connect database,Username to which username to log in with,Password to which password to log in with.