WebServer.com.my

Portal Home > Knowledgebase > Scripting, Component & Database > PHP > How to connect MySQL with 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);



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article