Portal Home > Knowledgebase > Scripting, Component & Database > PHP > How to connect MySQL with PHP?
Example 1:
$link = mysql_connect("localhost", "username", "password")
or die("Could not connect");
print ("Connected successfully");
mysql_close($link);
Add to Favourites
Print this Article