Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del article.php + news_cats.php

Parašė bruzgis· 2008 Rugp. 24 14:08:09
#8

openside('Navigacija');
     echo"<b>Meniu 1</b><br>";    
          $result = dbquery("SELECT * FROM ".$db_prefix."article_cats WHERE  article_cat_id = '1' || article_cat_id = '2' ORDER BY article_cat_name");  $rows = dbrows($result);  if ($rows != 0) {  while ($data = dbarray($result)) {
        $num = dbcount("(article_cat)", "articles", "article_cat='".$data['article_cat_id']."'");
    echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."articles.php?cat_id=".$data['article_cat_id']."'>".$data['article_cat_name']."</a> <font color='green'><b>($num)</b></font><br>";}}
     echo"<b>Meniu 2</b><br>";   
          $result = dbquery("SELECT * FROM ".$db_prefix."article_cats WHERE  article_cat_id = '3' || article_cat_id = '4' ORDER BY article_cat_name");  $rows = dbrows($result);  if ($rows != 0) {  while ($data = dbarray($result)) {
        $num = dbcount("(article_cat)", "articles", "article_cat='".$data['article_cat_id']."'");
    echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."articles.php?cat_id=".$data['article_cat_id']."'>".$data['article_cat_name']."</a> <font color='green'><b>($num)</b></font><br>";}}
     echo"<b>Meniu 3</b><br>";   
          $result = dbquery("SELECT * FROM ".$db_prefix."article_cats WHERE  article_cat_id = '5' || article_cat_id = '6' ORDER BY article_cat_name");  $rows = dbrows($result);  if ($rows != 0) {  while ($data = dbarray($result)) {
        $num = dbcount("(article_cat)", "articles", "article_cat='".$data['article_cat_id']."'");
    echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."articles.php?cat_id=".$data['article_cat_id']."'>".$data['article_cat_name']."</a> <font color='green'><b>($num)</b></font><br>";}}
     echo"<b>Meniu 4</b><br>";    
          $result = dbquery("SELECT * FROM ".$db_prefix."article_cats WHERE  article_cat_id = '7' || article_cat_id = '8' ORDER BY article_cat_name");  $rows = dbrows($result);  if ($rows != 0) {  while ($data = dbarray($result)) {
        $num = dbcount("(article_cat)", "articles", "article_cat='".$data['article_cat_id']."'");
    echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."articles.php?cat_id=".$data['article_cat_id']."'>".$data['article_cat_name']."</a> <font color='green'><b>($num)</b></font><br>";}}
closeside();




article_cat_id = '1' || article_cat_id = '2' keiti i reikiama id ir gali but kiek tik nori straipsniu
article_cat_id = '1' || article_cat_id = '2' article_cat_id = '3' || article_cat_id = '4 article_cat_id = '5' || article_cat_id = '8' article_cat_id = '6' || article_cat_id = '7'

Redagavo bruzgis· 2008 Rugp. 24 14:08:49