Establishing a Connection to MySql in PHP

Establishing a Connection to MySql using PHP:
<? 
$connection = @mysql_connect("localhost", "root", "root") or die(mysql_error());
if($connection)
{
echo "Connection success!";
}
?>

No comments:

Post a Comment