I'm trying to exclude some entries in a db that have the date set in the db some entries have under the SOLD colum 0000-00-00 and some have 2012-12-23 so if there is a date there means the vehicle is sold and if it's zero means it's still here.. how can I exclude them that have a date
php question
6
I'm trying to exclude some entries in a db that have the date set in the db some entries have under the SOLD colum 0000-00-00 and some have 2012-12-23 so if there is a date there means the vehicle is sold and if it's zero means it's still here..
how can I exclude them that have a date
I'm using SELECT * FROM `cars` WHERE `model`="$userchoice" AND `sold` = "0000-00-00"
is this the best way to do it - or?
how can I exclude them that have a date
I'm using SELECT * FROM `cars` WHERE `model`="$userchoice" AND `sold` = "0000-00-00"
is this the best way to do it - or?
- ussher
- traderookie
- traderookie
- Earnie Boyd
- seoking4
- xrampage16
Next Topics on Trending Feed
-
6