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 Link to comment https://forums.phpfreaks.com/topic/190051-error-on-my-sql-insert-into/ 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 Link to comment https://forums.phpfreaks.com/topic/190051-error-on-my-sql-insert-into/#findComment-1002687 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 Link to comment https://forums.phpfreaks.com/topic/190051-error-on-my-sql-insert-into/#findComment-1002688 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.