Jump to content

[SOLVED] 2 'LIKE'


dachshund

Recommended Posts

"like" this:  ;)

 

$sql="SELECT * FROM content WHERE `section` LIKE '%interview%' AND xxx LIKE '%feature%' ORDER BY date DESC LIMIT 1";

 

just re read your post, if you want section to be like '%interview%' or '%feature%' then use OR

 

$sql="SELECT * FROM content WHERE `section` LIKE '%interview%' OR `section` LIKE '%feature%' ORDER BY date DESC LIMIT 1";

Link to comment
https://forums.phpfreaks.com/topic/168020-solved-2-like/#findComment-886190
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.