Jump to content

WHERE AND WHERE


wright67uk

Recommended Posts

$query =mysql_query ("SELECT email FROM treesurgeons WHERE postcode like '%" . $shortcode . "%' AND confirmed = 'Yes' ORDER BY companyName LIMIT 3");

 

Ive had a syntax issue since Ive added AND confirmed = 'yes'

 

I want to return results if the value in my column named 'confirmed' reads the value 'yes'

 

How should I put this into my query?

Link to comment
https://forums.phpfreaks.com/topic/228676-where-and-where/
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.