morpheus729 Posted May 1, 2007 Share Posted May 1, 2007 Please can anybody help me? I receive this error: Parse error: parse error, unexpected '?' in /home/atchieco/public_html/member_area/config.php on line 5 Mysql version is 4.0.16 Mysql is : atchieco My database is: ?login My table is: Users The table structure is: CREATE TABLE ‘Users’ ( ‘id’ int(11) NOT NUL auto_increment, ‘Usersname’ text NOT NUL, ‘Password’ varchar(32) NOT NUL default ‘ ‘, ‘Name’ text NOT NUL, ‘Email’ text NOT NUL, ‘Date’ text NOT NUL, ‘IP’ text NOT NUL, ‘Actkey’ varchar(40) NOT NUL default ‘ ‘, ‘Activated’ int(1) NOT NUL default ‘0’, PRIMARY KEY (‘id’) ) The config.php file is this: <?php $l = mysql_connect ( "localhost" , "atchieco" , "72847284" ) or die("error connecting: <br><BR>".mysql_error()); mysql_select_db( "atchieco?login" ) or die("Error getting db: <BR><BR>".mysql_error()); ?> ?> Where is this error ?????? Quote Link to comment https://forums.phpfreaks.com/topic/49447-parse-error-parse-error-unexpected-in/ Share on other sites More sharing options...
DaveEverFade Posted May 1, 2007 Share Posted May 1, 2007 You have a question mark in the DB name. Is that supposed to be there? Quote Link to comment https://forums.phpfreaks.com/topic/49447-parse-error-parse-error-unexpected-in/#findComment-242339 Share on other sites More sharing options...
MadTechie Posted May 1, 2007 Share Posted May 1, 2007 #1 USE CODE TAGS #2 remove ?> Quote Link to comment https://forums.phpfreaks.com/topic/49447-parse-error-parse-error-unexpected-in/#findComment-242382 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.