|
|
|
|
if($previous || $next){
echo "";
}
?>
|
| |
switch ($opt)
{
Case "ET":
$m_heading = "Expert Talk";
$m_table = "ExpertTalk";// ' Latest Table
$ATable = "ExpertTalk_Archive";// ' Archive Table
break;
Case "GC":
$m_heading = "Guest Column";
$m_table = "GuestColumn";// ' Latest Table
$ATable = "GuestColumn_Archive";// ' Archive Table
break;
Case "GN":
$m_heading = "General News";
$m_table = "GeneralNews";// ' Latest Table
$ATable = "GeneralNews_Archive";// ' Archive Table
break;
Case "CP":
$m_heading = "Crop Updates";
$m_table = "crop_update";// ' Latest Table
$ATable = "crop_update_Archives";// ' Archive Table
break;
}
$sql = "Select itemid, caption, substring(entrydate,1,16) entrydate, subheading from " . $m_table . " where itemid!=".$id." order by entrydate desc limit 5";
$q->query($sql);
$count=0;
?>
";
?>
|