$resultspon=mysql_query("select count(*) from autopages_sponsored where ( category ='$category' and state ='$state' )",$db)or ie("oops");
while($myrowspon=mysql_fetch_array($resultspon)) { $spcount=$myrowspon["0"]; }
if ($spcount>"0")
{
$resultspon=mysql_query("select * from autopages_sponsored where ( category ='$category' and state ='$state' )
",$db );
while($myrowspon=mysql_fetch_array($resultspon))
{ echo ("
Coles Automotive Pty Ltd 3/9 Carnegie Place Blacktown NSW
Coles Automotive Offers Mobile Mechanical Repairs
and a Fixed Workshop for Rego, Small & Major works
to the Sydney Metropolitan Area.
PHONE 0414 777 794 - FAX 02 9676 7757