Tutorials/Code Samples

PHP MySQL Connect Test


<?php
$link = mysql_connect('localhost', 'dbuser_db', '123abc');	

    if (!$link) 
    {
        die('Could not connect: ' . mysql_error());
    }

echo 'Connected successfully';
mysql_close($link);
?>