Function Display_Summary($where)
{
global $images_folder;
DB_Connect();
$sql = "select * from global_articles where ".$where." order by date desc limit 1";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
if (mysql_affected_rows()>0)
{
echo "
";
if (strcmp($row["image"],"null")!=0) $img = " ";
else $img = "";
echo $img ;
echo "".$row["title"]."";
echo " $row[source]; ";
echo $row["summary"];
echo " Full story";
echo "
|
";
}
}
?>
Function Display_Emerging($where)
{
global $images_folder;
DB_Connect();
$sql = "select * from global_articles where ".$where." order by date desc limit 1";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
if (mysql_affected_rows()>0)
{
echo "";
if (strcmp($row["image"],"null")!=0) $img = " ";
else $img = "";
echo $img ;
echo "".$row["title"]."";
echo " ";
echo $row["summary"];
echo "
|
";
}
}
?>
Function Display_More($where)
{
DB_Connect();
$sql = "select unique_id, title from global_articles where ".$where." order by date desc limit 4";
$result = mysql_query($sql);
echo "";
$row = mysql_fetch_assoc($result);
while ($row = mysql_fetch_assoc($result))
{
echo "| • | $row[title] |
";
}
echo "
";
DB_Disconnect();
}
?>
Function Display_All($where)
{
DB_Connect();
$sql = "select unique_id, title from global_articles where ".$where." order by date desc";
$result = mysql_query($sql);
echo "";
$row = mysql_fetch_assoc($result);
while ($row = mysql_fetch_assoc($result))
{
echo "| • | $row[title] |
";
}
echo "
";
DB_Disconnect();
}
?>
Function Display_Footer()
{
?>
Copyright © 2004 KAFOI Online, Inc. All rights reserved.
Terms of Service
Articles are outsourced from different media companies in East
Africa with copyright permission, except when noted.
International news is outsourced from Reuters and Associated Press. For
more information about our International Partner Agreements visit our
Terms of Service.
}
?>
Function showPointer()
{
echo "
";
}
?>