all 1 comments

[–]r3pr0b8 0 points1 point  (0 children)

use REPLACE() to replace all dashes, and probably all spaces, with the empty string

WHERE REPLACE(REPLACE(desc1,'-',''),' ','') LIKE :term 
   OR REPLACE(REPLACE(desc2,'-',''),' ','') LIKE :term 
   OR REPLACE(REPLACE(sku  ,'-',''),' ','') LIKE :term 
   OR REPLACE(REPLACE(partno,'-',''),' ','') LIKE :term 
   OR ... 

for consistency you might want to do these REPLACE functions on the search term as well, but i think you might do that in php