0

我的问题是,当我说我想要许多主题的主要主题时,这些主题向他展示了所有显示的事项 例如:工程程序:


阿贾克斯 PHP

力量:


阿贾克斯 PHP


电子:Ajax PHP

<?php
require_once 'send.php';
$obj = new classconnect();
$obj->funcconnect();
$cat = mysql_query('SELECT * FROM `_tbcat`');
echo '<table width="251" height="29">' . PHP_EOL;
while($rescat = mysql_fetch_assoc($cat)) {
    echo '<tr>' . PHP_EOL;
    echo '<td>' . PHP_EOL;
    echo '<p><a class="a2" href="showbycat.php?cat=' . $rescat['subcat'] . '">';
    echo '<img src="images/tray-logout.gif" alt="" width="12" height="9"/>' . $rescat['subcat'];
    $query = mysql_result(mysql_query("SELECT COUNT(*) AS `category` FROM `_tbup` WHERE (`category`='{$rescat['subcat']}')"), 0, 0);
    echo 'تعداد مقالات: (' . $query . ')</a></p>' . PHP_EOL;
    $khoroji = mysql_result(mysql_query("SELECT * from `_tbsubcat`,`_tbcat` WHERE _tbcat.id=id_cat"), 0,1);
    echo $khoroji;
}
 echo '</tr>' . PHP_EOL;

echo '</table>' . PHP_EOL;
?>
4

0 回答 0