I have this query:
SELECT * FROM items WHERE itemcategory= 123 AND itemname LIKE '%abc%';
I want to pass parameters to itemcategory and itemname; I tried something like this:
SELECT *  FROM items WHERE itemcategory=".'$categoryid'." AND itemname LIKE" ."'%$itemname%'"." AND shopid=5003;
It didn't work. Can anyone help?
 
     
     
    