driveflexfuel
New Member
- Messages
- 159
- Reaction score
- 0
- Points
- 0
I have been trying to get the following code to work but for some reason it keeps throwing an error. Any assistance is appreciated.
Code:
mysql_query("IF NOT EXIST (SELECT * FROM station WHERE name='$name' AND address='$address' AND city='$city') THEN
INSERT INTO station (name, address, city, state, zip, phone, notes) VALUES ('$name', '$address', '$city', '$state', '$zip', '$phone', '$notes')") or die(mysql_error());