Jump to content

Quick Question


Ryaan

Recommended Posts

So basically what I've got is this

$search = mysql_query("SELECT * FROM myPMs WHERE message like \"%$trimmed%\""); 

 

But what I want is it to do something such as

WHERE message like \"%$trimmed%\" and also WHERE to_user = '$id'

 

So it would be getting two WHERE's.

 

I'm not sure if it's possible, but if it is please let me know how.

 

Thanks, Ryan.

 

Link to comment
https://forums.phpfreaks.com/topic/38998-quick-question/
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.