Saturday, August 6, 2011

How to search from database using OR Operator ?

SELECT * FROM `distributor` where (`distributor_name` like '%".$_REQUEST["dis_name"]."%') or (`country` like '%".$_REQUEST["country"]."%' and `zipcode` like '%".$_REQUEST["zipcode"]."%')

No comments:

Post a Comment