I have two columns as a company and a product.
I use the following query to get products matching a specific string ...
select id,(select name from company where product.cid=company.id) as
company,name,selling_price,mrp from product where name like '$qry_string%'
But when I need to list the products of a particular company, how can I do this?
I tried the following, but in vein
select id,(select name from company where product.cid=company.id) as
company,name,selling_price,mrp from product where company like '$qry_string%'
help me
source
share