Jump to content

error on my sql insert into


deansaddigh

Recommended Posts

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

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.