Connect.php whats wrong?
Posted: Tue Feb 21, 2012 11:32 pm
my connect.php code looks like this:
<?php
$db = mysql_connect ("localhost,"root","") or die ("could not connect to db");
if (!$db)
die ("no db");
if (!mysql_select_db("tutorial",$db))
die("No database selected");
?>
and for some reason it says there is a parsing error on line three when i try to run my registration.php (yes im following the guide on youtube)
I need help ASAP
( ! ) Parse error: syntax error, unexpected T_STRING in C:\wamp\www\Tutorial\Connect.php on line 3
Call Stack
# Time Memory Function Location
1 0.0007 362768 {main}( ) ..\Register.php:0
This is the error i get
<?php
$db = mysql_connect ("localhost,"root","") or die ("could not connect to db");
if (!$db)
die ("no db");
if (!mysql_select_db("tutorial",$db))
die("No database selected");
?>
and for some reason it says there is a parsing error on line three when i try to run my registration.php (yes im following the guide on youtube)
I need help ASAP
( ! ) Parse error: syntax error, unexpected T_STRING in C:\wamp\www\Tutorial\Connect.php on line 3
Call Stack
# Time Memory Function Location
1 0.0007 362768 {main}( ) ..\Register.php:0
This is the error i get