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"', '"test@test.test"', '"0"', '"0.0.0.0"', '"0"', '"1"', '"100"', '"100"')") or die("Could not register."); Quote 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' Quote 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 Quote 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', 'test@test.test', '0', '0.0.0.0', '0', '1', '100', '100')") or die("Could not register."); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.