$DisplayArticle = "No" ;
$ContentDeskID = "" ;
if(isset($_GET['id']))
{
$ContentDeskID = $_GET["id"] ;
}
if (trim($ContentDeskID) != "")
{
$count = "1";
$ID = 0 ;
$db = @mysql_connect("localhost", "fuelthec", "rn5390gj") or die("here we die at connection");
@mysql_select_db("fuelthec_themustanginsider",$db) or die("here we die");
$query = "SELECT * FROM ContentDesk where ContentDeskID = $ContentDeskID AND Status = 'publish' LIMIT 0, $count" ;
$result = mysql_query($query) ;
while($row = mysql_fetch_array($result))
{
$ID = "$row[ContentDeskID]";
$title = "$row[Title]";
$content = "$row[Content]";
}
if ($ID > 0) {$DisplayArticle = "Yes" ;}
}
?> if ($DisplayArticle == "No")
{
?>
Recent
Articles :
echo $title ; ?>
}
else
{
?>
echo $title ; ?>
|
|
echo $content ; ?>
|
}
?>
|
" ;
}
?>