MYSQL_QUERY("INSERT INTO `Models` (Name, Gender, Age, Height, Dress Size, Chest, Bra, Waist, Hips, Inside Leg, Eye Colour, Hair Colour, Hat Size, Shoe Size, Nationality, Native Accent, Photography, Catwalk/Showroom, Promotional, Video, Adult, Fashion, Glamour, Swimwear/Lingerie, Body Parts, Hair, Gothic or Fetish, Topless, Classic/Artistic Nude, UK Nude, US Nude, Continental Nude, Other, Pic1, Pic2) VALUES ('$Name','$Gender','$Age','$Height','$DressSize','$Chest','$Bra','$Waist','$Hips,'$InsideLeg','$EyeColour','$HairColour,'$HatSize','$ShoeSize','$Nationality','$NativeAccent','$Option1','$Option2','$Option3','$Option4','$Option5','$Option6','$Option7',$Option8','$Option9','$Option10','$Option11','$Option12','$Option13','$Option14','$Option15','$Option16','$Option17','$Option18','$Pic1','$Pic2','$Pic3','$Pic4','$Pic5')") or die(mysql_error());
I've added :
PHP Code:
or die(mysql_error());
But just looking really quickly I've noticed you have field names like 'Inside Leg' is that really what your field name is in your database? or is it 'inside_leg'?
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Size, Chest, Bra, Waist, Hips, Inside Leg, Eye Colour, Hair Colour, Hat Size, Sh' at line 1
I'm not sure, but it's possible that you need quotes around the columns that are two words (like "Native Accent') or maybe the forward slashes are causing the problem (like in 'Swimwear/Lingerie').
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Size, Chest, Bra, Waist, Hips, Inside Leg, Eye Colour, Hair Colour, Hat Size, Sh' at line 1
?? Not sure what it could be.
check your database and reply with the field names. Make sure Size, Chest, Bra, Waist, Hips, Inside Leg, Eye Colour, Hair Colour, Hat Size etc... are all fields in your database and make sure they are all spelled correctly. Also in the future you really want to use all lower case with underscores for spaces when naming database tables and fields. Or use camel case. ie inside_leg or insideLeg as field names.
It looks like that is the issue since your error starts at Size. it should be Dress Size correct? So it may not be working since you have a space between Dress and Size. I would suggest renaming all your fields now to dress_size, inside_leg etc.. then modifying your php code to use those names. It's work but it'll work.
Okay, I looked it up you can use spaces (no restrictions on the mysql side) in field names but it is considered bad practice and I googled 'php spaces in mysql field name' and their are tons of other people with the same issue. Again, I would recommend changing the field names.