deansaddigh Posted January 27, 2010 Share Posted January 27, 2010 Is this sql query incorrect, i would obviously assume it is as its displaying the or die error. Any help? // Insert enquiry data $query = "INSERT INTO enquiry(email, subject, content, first_name, surname, date, replied) VALUES(0, '$email', '$subject', '$question', '$firstname', '$surname', NOW(), 'no')"; $result = mysql_query($query) or die("Error making contact"); Cheers guys Quote Link to comment Share on other sites More sharing options...
kickstart Posted January 27, 2010 Share Posted January 27, 2010 Hi You are trying to insert 8 values into 7 columns. All the best Keith Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted January 27, 2010 Author Share Posted January 27, 2010 Oopsy!!! Dont i feel stupid. Thanks man thats sorted it 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.