Jump to content

Search result problem


vinpkl

Recommended Posts

hi all

 

i m showing search result according to query.

 

$pnm=$row['product_name'];
$pnm = explode(' ', $pnm); 		

$qryc="select * from product_table where product_name LIKE '%$pnm[0]%' AND product_name LIKE '%$pnm[1]%' and category_id=4";

 

Now if somebody enters "Sony Ericsson T707" then it fetches "Sony Ericsson" as two separate words.

 

I want that it should fetch "sony Ericsson" as one word like "SonyEricsson" removing their inbetween space.

 

how can i do it.

 

vineet

Link to comment
https://forums.phpfreaks.com/topic/165679-search-result-problem/
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.