Jump to content

Whats wrong with my sql query


deansaddigh

Recommended Posts

Hi guys, just wondered if anyone knows whats wrong with this

	//Send an email
		$headers = "From: languageschoolsuk.com\r\n";
		if (mail($email, $subject, $message, $headers)) 
		{
		  echo("<p>Message successfully sent!</p>");
		  
		  //Update the enquiry record to show that it has been replied to
		  $query ="UPDATE enquiry SET replied=YES  WHERE  enquiry_id = ".$enquiry_id;
		  $result = mysql_query($query, $conn)
		  or die ("Unable to perform query");			  
		  
		} 
		else 
		{
		  echo("<p>Message delivery failed...</p>");
		}

 

IM getting the unable to perform query, the $enquiry_id is set

Link to comment
https://forums.phpfreaks.com/topic/193412-whats-wrong-with-my-sql-query/
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.