Posts Tagged ‘connecting mysql in php’
Jun 30 2008
PHP MySQL Connect
MySQL Connect
<?php
$connection=mysql_connect(”localhost”, “username”, “password”) or die(mysql_error());
echo “Connected to MySQL<br />”;
?>

MySQL Connect
<?php
$connection=mysql_connect(”localhost”, “username”, “password”) or die(mysql_error());
echo “Connected to MySQL<br />”;
?>