i have written this code:
<?
$link_id = mysql_connect("localhost", "maxweb", "**********");
if(mysql_select_db("mysql", $link_id) echo "Connected to the localhost.";
else die ("Connection failed, try again lator.");
?>
but php thinks there is something wrong with it, i get this error:
Parse error: parse error in c:/windows/desktop/max/websites/php book/mysql.php on line 3
what can i do to get it right (i am working from a book called 'beginning PHP 4')
can you correct the code for me ??
Thanks,
Max Slade