Jump to content

MySQL Contains


Garethp

Recommended Posts

Well, I'm creating a website and I want to search a for a field that contains a certain string of characters. I have tried the following

 

$Look = mysql_query("SELECT * FROM table WHERE column LIKE '$Search'");

 

and

 

$Look = mysql_query("SELECT * FROM table WHERE CONTAINS (column, '$Search')");

 

but when I try to run it through

 

if(!mysql_num_rows($Look))

 

It either comes out as no results or not a valid resource. Can I get some help please?

Link to comment
https://forums.phpfreaks.com/topic/131317-mysql-contains/
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.