$sql= "SELECT pw.id_pawn,pw.name_pawn,p.price_pawn,p.name_pro,p.generation_pro,p.date_expPledge,pt.name_ptype,
b.name_branch
FROM product as p , pawn as pw,product_type as pt ,branch as b WHERE pw.id_pawn=p.id_pawn and DATE( date_expPledge ) = CURDATE( ) AND id_paytype =5 and p.id_ptype=pt.id_ptype and p.id_pro like '%$_POST[data]%' ";