Guarda questo è tutto il codice che ho:

$Query = "SELECT CategoryDetail, CategoryID FROM CategoryDetails
WHERE StatusID = 1 AND LangID = 1";

$result = mysql_query($Query,$db);
if(mysql_num_rows($result) == 0) :
$Msg = "No content found in this category";
EndIf;

if(is_numeric($CategoryID)) :
$TextQuery = "SELECT CategoryID, CatBody FROM CategoryDetails
WHERE StatusID = 1 AND LangID = 1";
$TextResult = mysql_query($TextQuery,$db);
if(mysql_num_rows($TextResult) == 0) :
$Msg = "No content found in this category";
Else:
$rsT = mysql_fetch_array($TextResult);
$Text = $rsT["CatBody"];
EndIf;
EndIf;


poi nell'html ho queste due parti di codice, che agiscono in celle diverse:

Primo:

<?php while($rs = mysql_fetch_array($result)) :
echo ("<a href=\"Studio.php?CategoryID=". $rs["CategoryID"] . "\" class='leftmenu'>" .$rs["CategoryDetail"])."</a>"."
";
EndWhile; ?>

Secondo:

<?php echo $Text; ?>

...