//Header starts here.?>
//Initialize the $CatNum array
for($counter=1; $counter<=37; $counter++)
{$CatNum[$counter]=0;}
If (!isset($Regionstate)){$Regionstate=12;}
?>
// Ad restrictions based on location choice.
$plus = "";
if ($Regionstate ==1)
{$plus=" AND Regionstate != 11";}
if ($Regionstate ==2)
{$plus=" AND Regionstate = 2";}
if ($Regionstate ==3)
{$plus=" AND Regionstate = 3";}
if ($Regionstate ==4)
{$plus=" AND Regionstate = 4";}
if ($Regionstate ==5)
{$plus=" AND Regionstate = 5";}
if ($Regionstate ==6)
{$plus = " AND Regionstate = 6";}
if ($Regionstate ==7)
{$plus=" AND Regionstate = 7";}
if ($Regionstate ==8)
{$plus=" AND Regionstate = 8";}
if ($Regionstate ==9)
{$plus=" AND Regionstate = 9";}
if ($Regionstate ==10)
{$plus=" AND Regionstate = 10";}
if ($Regionstate ==11)
{$plus=" AND Regionstate = 11";}
if ($Regionstate == 12)
{$plus="";}
// get ads from the Ads table
/*$qid = db_query("SELECT Category FROM Ads WHERE Approved = 1 AND Toggle = 1 $plus");
while($row = mysql_fetch_row($qid))
{
$Ctgry = $row[0];
$CatNum[$Ctgry]++;
}
// get ads from the Commercial table
$qid = db_query("SELECT Category FROM Commercial WHERE Approved = 1 AND Toggle = 1 $plus");
while($row = mysql_fetch_row($mysql_result))
{
$Ctgry = $row[0];
$CatNum[$Ctgry]++;
}
*/
?>
|
//Header ends here.?>
If you did not upload a photo at the time you placed your ad, or if you would like to submit a new photo to replace a previously submitted one:
|