Jump to content

[SOLVED] Inserting the value name instead of the actual value


maddcow26

Recommended Posts

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

 

 

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.