kostenloser Webspace werbefrei: lima-city


Probleme mit FastTemplate

lima-cityForumProgrammiersprachenPHP, MySQL & .htaccess

  1. Autor dieses Themas

    n********r

    Hi,

    ich habe ein kleines Problem mit meinen Script.
    Ich nutze die FastTemplateengine um mein Script auszuegen, sieht so aus:

    <?php
    <?php
    error_reporting(E_ALL);
    session_start();
    
    /*Load all functions*/
    include('includes/class.FastTemplate.php3');
    include('includes/class.mysql.php');
    include('includes/board.config.php');
    include('includes/function.php');
    include('language/lang.php');
    
    //New Template
    $tpl = new FastTemplate("templates/$style_name/");
    
    //Load the Templatedatas
    
    $tpl->define(array(
    "overall_header" => "overall_header.tpl",
    "overall_menu" => "overall_menu.tpl",
    "view_boards" => "view_boards.tpl",
    "overall_footer" => "overall_footer.tpl"
    ));
    
    /*Main Links and Main Titles*/
    
    $tpl->assign("{template_name}", $style_name);
    $tpl->assign("{board_title}", $board_title);
    $tpl->assign("{board_desc}", $board_desc);
    
    /*Menu*/
    
    $tpl->assign("{main_link}", "index.php");
    
    if(isset($_SESSION['user_id']))
    {
    $tpl->assign("{profil_link}", 'profil.php');
    $tpl->assign("{menu_profil}", $lang_profil);
    }
    else
    {
    $tpl->assign("{profil_link}", 'registration.php');
    $tpl->assign("{menu_profil}", $lang_registration);
    }
    
    $tpl->assign("{members_link}", 'members.php');
    $tpl->assign("{menu_members}", $lang_members);
    $tpl->assign("{search_link}", 'search.php');
    $tpl->assign("{menu_search}", $lang_search);
    $tpl->assign("{faq_link}", 'faq.php');
    $tpl->assign("{menu_faq}", $lang_faq);
    
    /*BOARDS*/
    
    $tpl->assign("{board_main_name}", 'members.php');
    $tpl->assign("{board_main_topics}", $lang_members);
    $tpl->assign("{board_main_posts}", 'search.php');
    $tpl->assign("{board_main_last}", $lang_search);
    
    $cat_db = "SELECT cat_id, cat_name FROM board_categories ORDER BY cat_sort ASC";
    $cat_name = new mysql($cat_db);
    
    $result = $cat_name->select($cat_db);
    
    while($cat_out = mysql_fetch_assoc($result))
    {
        $tpl->assign("{cat_name}", $cat_out['cat_name']);    
    }
    
    $tpl->parse("print_out_overall_header", "overall_header");
    $tpl->parse("print_out_overall_menu", "overall_menu");
    $tpl->parse("print_out_view_boards", "view_boards");
    $tpl->parse("print_out_overall_footer", "overall_footer");
    $tpl->FastPrint("print_out_overall_header");
    $tpl->FastPrint("print_out_overall_menu");
    $tpl->FastPrint("print_out_view_boards");
    $tpl->FastPrint("print_out_overall_footer");
    ?>
    Das Problem?
    Es wird mir nur einen Categorie angezeigt, obwohl zwei in der DB sind.
    Und es wird mir auch keine Fehlermeldung ausgeben.
    Was mache ich falsch?


    Beitrag geaendert: 18.3.2007 10:02:01 von newwarrior
  2. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

Dir gefällt dieses Thema?

Über lima-city

Login zum Webhosting ohne Werbung!