Can someone tell me what the parse error is in this script!, would much appreciate it.
mysql_connect ('localhost','root','root'); or die ("mysql_error"());
Can someone tell me what the parse error is in this script!, would much appreciate it.
mysql_connect ('localhost','root','root'); or die ("mysql_error"());
Remove the first semicolon. ; or
is not valid.
Also, you shouldn't typically be quoting mysql_error
:
mysql_connect ('localhost','root','root') or die(mysql_error());
Remove the ;
after mysql_connect
and also the quotes in mysql_error()
.
mysql_connect ('localhost','root','root') or die (mysql_error());
For reference: Connecting to database