If you wish to display a jobs counter by each category and location on your homepage, then this upgrade is for you.
To view a example of the counter, please see below:

To upgrade, simply modify the pages as below:
tab2/category.html
Change:
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/category/<?=$string?>.html”><?=$aqm['category']?></a>
to
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/category/<?=$string?>.html”><?=$aqm['category']?></a> (<? $f = “SELECT jobid, COUNT(*) FROM jobs WHERE category like ‘%$aqm[category]%’ and status = ’0′ GROUP BY jobid”;$g = mysql_query($f) or die(mysql_error());$h = mysql_num_rows($g); $row2 = mysql_fetch_row($g); echo “$h”; ?>)
tab2/location.html
Change:
<td height=”5″ width=”30%” valign=”middle”><?
$string = “$aqm[country]“;
$string = str_replace (” “, “_”, $string);
$string = strtolower($string);
?>
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/location/<?=$string?>.html”><b><?=$aqm['country']?></b></a><br><table cellpadding=”1″ cellspacing=”1″ width=”100%”><?$i2 = -1;$qm2 = “select * from subcounties where toplevelcountry = ‘$aqm[country]‘ order by subcounty”;$rqm2 = mysql_query($qm2) or die(mysql_error());while($aqm2=mysql_fetch_array($rqm2)){$i2++;if($i2/3 == intval($i2/3)){?><tr><?}?><td height=”5″ width=”30%” valign=”middle” onMouseOver=this.style.backgroundColor=’#DDDDDD’ onMouseOut=this.style.backgroundColor=’#FFFFFF’><?
$string2 = “$aqm2[subcounty]“;
$string2 = str_replace (” “, “_”, $string2);
$string2 = strtolower($string2);
?>
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/2_all/<?=$string?>/<?=$string2?>.html”><?=$aqm2['subcounty']?></a><br></td><?if(($i2+1)/3 == intval(($i2+1)/3)){?></tr><?}}?></table><br></td>
to
<td height=”5″ width=”30%” valign=”middle”><?
$string = “$aqm[country]“;
$string = str_replace (” “, “_”, $string);
$string = strtolower($string);
?>
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/location/<?=$string?>.html”><b><?=$aqm['country']?></b></a> (<? $f = “SELECT jobid, COUNT(*) FROM jobs WHERE country like ‘%$aqm[country]%’ and status = ’0′ GROUP BY jobid”;$g = mysql_query($f) or die(mysql_error());$h = mysql_num_rows($g); $row2 = mysql_fetch_row($g); echo “$h”; ?>)<br><table cellpadding=”1″ cellspacing=”1″ width=”100%”><?$i2 = -1;$qm2 = “select * from subcounties where toplevelcountry = ‘$aqm[country]‘ order by subcounty”;$rqm2 = mysql_query($qm2) or die(mysql_error());while($aqm2=mysql_fetch_array($rqm2)){$i2++;if($i2/3 == intval($i2/3)){?><tr><?}?><td height=”5″ width=”30%” valign=”middle” onMouseOver=this.style.backgroundColor=’#DDDDDD’ onMouseOut=this.style.backgroundColor=’#FFFFFF’><?
$string2 = “$aqm2[subcounty]“;
$string2 = str_replace (” “, “_”, $string2);
$string2 = strtolower($string2);
?>
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/2_all/<?=$string?>/<?=$string2?>.html”><?=$aqm2['subcounty']?></a> (<? $f = “SELECT jobid, COUNT(*) FROM jobs WHERE subcounty like ‘%$aqm2[subcounty]%’ and status = ’0′ GROUP BY jobid”;$g = mysql_query($f) or die(mysql_error());$h = mysql_num_rows($g); $row2 = mysql_fetch_row($g); echo “$h”; ?>)<br></td><?if(($i2+1)/3 == intval(($i2+1)/3)){?></tr><?}}?></table><br></td>
tab2/tab.php
Change:
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/category/<?=$string?>.html”><?=$aqm['category']?></a>
to
<img src=’images/l1.png’ border=’0′ /> <a href=”<?=$fullurl?>/category/<?=$string?>.html”><?=$aqm['category']?></a> (<? $f = “SELECT jobid, COUNT(*) FROM jobs WHERE category like ‘%$aqm[category]%’ and status = ’0′ GROUP BY jobid”;$g = mysql_query($f) or die(mysql_error());$h = mysql_num_rows($g); $row2 = mysql_fetch_row($g); echo “$h”; ?>)
If you have further queries regarding this issue, please email us at info@joblite.co.uk