maddcow26 Posted September 24, 2008 Share Posted September 24, 2008 This is my insert : $query = "INSERT INTO formresults (qname, qemail, qaddress, burlap, gender, primarystyle, yearsprimary, yearsgrappling, weekly, stephanquestion, visitorsince, dvdpurchase) VALUES ('qname', 'qemail', 'qaddress', 'burlap', 'gender', 'primarystyle', 'yearsprimary', 'yearsgrappling', 'weekly', 'stephanquestion', 'visitorsince', 'dvdpurchase')"; It inserts to the database but it is inserting the value names (ie, qname) instead of the actual value (field name) passed from the form. How do I fix this? thanks in advance Quote Link to comment Share on other sites More sharing options...
thesaleboat Posted September 24, 2008 Share Posted September 24, 2008 mysql_query("INSERT INTO `users_subcategories` (`username`, `SubCategoryId`) VALUES ('$myusername','$subcategory');") or die(mysql_error()); Here is what i use, you have to use the $ sign Quote Link to comment Share on other sites More sharing options...
maddcow26 Posted September 24, 2008 Author Share Posted September 24, 2008 Beautiful. thanks buddy Quote Link to comment 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.