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 ?????? 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? 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 ?> 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
Archived
This topic is now archived and is closed to further replies.