Hello,
I have 2 tables with the following schema
listings_members
-bid
-member
listings_type
-bid
-type
I want to be able to select all bid's from listings_type but only if the bid is in listings_members and member is set to "Yes"
I know there is a way to do it but im having trouble writing the sql statement. Any help would be apprecated.
this is what i have
PHP Code:
$sql = "SELECT bid.listings_type, bid.listings_members FROM listings_type,listings_members where type.listings_type = '$type' and bid.listings_members = 'Yes'";
Any help would be appreciated
__________________
Anthony LeBoeuf
Cape-Tek IT Solutions
Please login or register to view this content. Registration is FREE
Great hosting at affordable pricing!
|