Forum Moderators: coopster
I also have a seperate table that contains the street address and zip of everybody that has ever requested a free sample(we will call this address table).
I want to make my existing survey form not submit data to the "freesample" table if the address already exists in the "address" table. How do I write the insert command to do this? My guess was:
INSERT INTO freesample (name, street, city, zip) VALUES (%s,%s,%s,%s) WHERE street!='address.street' and zip!='address.zip'
This, obviously, was wrong.