grlayouts Posted December 22, 2007 Share Posted December 22, 2007 i want to insert into database but im getting error "Parse error: syntax error, unexpected T_STRING" my code is. mysql_query("insert into players (user, email, pass, ip, code, level, strength, agility) values('"HoboManOne"', '"[email protected]"', '"0"', '"0.0.0.0"', '"0"', '"1"', '"100"', '"100"')") or die("Could not register."); Link to comment https://forums.phpfreaks.com/topic/82853-parse-error-syntax-error-unexpected-t_string/ Share on other sites More sharing options...
papaface Posted December 22, 2007 Share Posted December 22, 2007 '"HoboManOne"' Those should just be: 'HoboManOne' Link to comment https://forums.phpfreaks.com/topic/82853-parse-error-syntax-error-unexpected-t_string/#findComment-421382 Share on other sites More sharing options...
grlayouts Posted December 22, 2007 Author Share Posted December 22, 2007 now im getting Parse error: syntax error, unexpected T_LNUMBER in Link to comment https://forums.phpfreaks.com/topic/82853-parse-error-syntax-error-unexpected-t_string/#findComment-421384 Share on other sites More sharing options...
papaface Posted December 22, 2007 Share Posted December 22, 2007 I suggest you brush up on php your code should be: mysql_query("insert into players (user, email, pass, ip, code, level, strength, agility) values('HoboManOne', '[email protected]', '0', '0.0.0.0', '0', '1', '100', '100')") or die("Could not register."); Link to comment https://forums.phpfreaks.com/topic/82853-parse-error-syntax-error-unexpected-t_string/#findComment-421386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.