Jump to content

Parse error: syntax error, unexpected T_STRING


grlayouts

Recommended Posts

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."); 

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."); 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.