sorguyu yapmışsında echo ile hiç bişey yazdımamışsın yada ben soruyu tam anlamadım aşağıdaki kodları bir dene istersen
<?
$cat=mysql_query("SELECT jos_content.id, jos_content.catid, jos_categories.name"
. "\n FROM jos_content"
. "\n INNER JOIN jos_categories ON jos_content.catid = jos_categories.id"
. "\n INNER JOIN jos_categories ON jos_content.sectionid = jos_sections.id"
. "\n WHERE catid='$catid'"
. "\n DESC LIMIT $i,1");
while($dongu = mysql_fetch_array($cat))
{
echo $dongu[jos_categories.name]."<br>";
}
?>
Yazdığınız
while($dongu = mysql_fetch_array($cat))
satırı için şu hatayı veriyor:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in