Hi,
I want to make a search option for my site. I know the basic search criteria. it search from 1 feild. but I need that it should search from 2-3 feild.
example:
My feild names are: moviename, artist, coartist, keyword.
here keywords saves like: avengers, scarlet, tonny, (with comma).
When i put a name on the search box, it should search from all these field and provide me the results. but all I came up with these
Can anyone help me out in this?
I want to make a search option for my site. I know the basic search criteria. it search from 1 feild. but I need that it should search from 2-3 feild.
example:
My feild names are: moviename, artist, coartist, keyword.
here keywords saves like: avengers, scarlet, tonny, (with comma).
When i put a name on the search box, it should search from all these field and provide me the results. but all I came up with these
PHP Code:
$result = mysql_query("SELECT * FROM `movie_info` WHERE `moviename` LIKE '%$q%' LIMIT 0 , 30");
while ($row = mysql_fetch_array($result)) {
---
}
Comment