Forum Moderators: coopster
//connect to the database
$dbcnx=@mysql_connect('localhost','manleynet','password')
if (!$dbcnx) {
exit('<p>Unable to connect to the ' .
'database server at this time.</p>'); */
this is not the only error but the one i am having the most problem with.
Regards
Ian
I am following an online tutorial
But have you tried the PHP Forum tutorial on the Basics of extracting data from MySQL using PHP [webmasterworld.com]? ;)
It seems you are forgetting to terminate your first statement with a semicolon and you also forgot to close your if control structure with a closing brace:
//connect to the database
$dbcnx=@mysql_connect('localhost','manleynet','password');
if (!$dbcnx) {
exit('<p>Unable to connect to the database server at this time.</p>');
}
Thanks for your advice regards
Ian
So hang in there, meanweaver ;)