View Single Post
  #2 (permalink)  
Old 2008-05-06, 07:43 AM
strasm strasm is offline
Senior Member
 
Join Date: Dec 2004
Posts: 199
strasm is an unknown quantity at this point
Default

You have probably solved this already, but if you haven't here is the skinny. If you are just starting development on this site do yourself a favor and make two different fields for rent and sale. If you are beyond that point I will show a work around.

you can do two seperate count queries like this:

SELECT COUNT(salelet) AS salecount FROM res3 WHERE salelet LIKE '%sale%';

and

SELECT COUNT(salelet) AS rentcount FROM res3 WHERE salelet LIKE '%rent%';

Hope that helps
Reply With Quote