Hi,
I need help, i have a search box by which i want to get results from two different rows.
Table is like this :
id...storename....discription
1...IndiaTimes... Get 50% off on all products
2... Lenskart ... Get 20% off on all product
3... Myntra.com.. Get 50% off on all products
I want to get search results on this search terms : "50% off on Indiatimes". Currently There are two results for "50% off" but i want to fetch only from Indiatimes because the complete search terms is "50% off on Indiatimes".
Currently i am using this sql query :
$Search=$_GET['search_words']
$sql="select * from TABLENAME where ((storename like '%".$search."%') OR (discription like '%".$search."%')) order by id asc";
AND also tried this :
$sql="select * from TABLENAME where ((storename like '%".$storename."%') OR (discription like '%".$storename."%')) order by id asc";
Please help me out Guys...!