Hey, I am trying to insert data into a table wbsUser in the database but can’t. What is the problem with this code?
[php]
} else { echo"Invalid registration"; } ?> [/php]
Hey, I am trying to insert data into a table wbsUser in the database but can’t. What is the problem with this code?
[php]
} else { echo"Invalid registration"; } ?> [/php]
you have an extra comma on the fields:
[php](fullname, username,password,address,
email,cellno,birth_month,birth_day,birth_year,
gender,)[/php]
lose the last comma
I so so much wrong I do nto know where to start ;D
You will need to sanatise your code before entering it in to mysql.
and yes remove the comma and also no php tags to open close the php when entering html.
field gender but have agree ???
Are you missing a field like agree and gender ?
Try using or die to help with simple errrors
[php]
$result = mysql_query($sql)or die (mysql_error);
[/php]