Posted by:
ddunn935
(---.lightspeed.stlsmo.sbcglobal.net)
Ok is this right?:
<?php
$link = mysql_connect('hostname', 'root', "
;
if (!$link) {
die('Could not connect to MySQL: ' . mysql_error());
}
echo 'Connection OK'; mysql_close($link);
?>
And when i test the php file in the browser it says:
Parse error: syntax error, unexpected $end in C:\wamp\www\testmysql.php on line 7