$page_title = "UK Dating | Expat Dating | Online Friendship and Personal Ads for Expats - Single Friends";
$description_meta = "Single friends online friendship and dating service for singles in the UK and expats around the world. Post your personal ad online. Join free now!";
$keywords_meta = "uk dating, online dating, dating uk, expat dating, expats dating, expat friendship, personal ads, love and friends, find love online";
$sponsor_text = "
";
ob_start("ob_gzhandler");
require_once("conn.php");
require_once("includes.php");
$q1 = "select * from personal_categories order by field(CategoryID,'8','2','4','3','6')";
$r1 = mysql_query($q1) or die(mysql_error());
while($a1 = mysql_fetch_array($r1))
{
$MyID[] = $a1[CategoryID];
$MyName[] = $a1[CategoryName];
$q2 = "select count(*) from personal_catalog where CategoryID = '$a1[CategoryID]' ";
$r2 = mysql_query($q2) or die(mysql_error());
$a2 = mysql_fetch_array($r2);
$MyNumber[] = $a2[0];
}
if(!empty($MyID))
{
for($i = '0'; $i <= (count($MyID)); $i+=1)
{
$one = $i;
$two = $i + 1;
$three = $i + 2;
$categories .= "\n\t\t";
if(!empty($MyID[$one]))
{ //($MyNumber[$one])
$categories .= "| $MyName[$one] | \n\t\t";
}
else
{
$categories .= " | \n\t\t";
}
/*
if(!empty($MyID[$two]))
{ //($MyNumber[$two])
$categories .= "$MyName[$two] | \n\t\t";
}
else
{
$categories .= " | \n\t\t";
}
if(!empty($MyID[$three]))
{ //($MyNumber[$three])
$categories .= "$MyName[$three] | \n";
}
else
{
$categories .= " | \n";
}
*/
$categories .= "
\n
\n";
}
}
//get the template
require_once("templates/HeaderTemplate.php");
require_once("templates/IndexTemplate.php");
require_once("templates/FooterTemplate.php");
?>