<?php include(\"config.php\"); include(\"parse_tags.php\"); function parse($file, $co){ $tpl_fd = \"templates\"; } else { } $t[\"l_menu\"] = array( \"{title}\", \"{text}\" ); $p[\"l_menu\"] = array( $title, $text ); return $c; } function left_menu(){ $title = $v['title']; $text = $v['text']; parse(\"l_menu\", \"l_menu\"); } } function right_menu(){ $title = $v['title']; $text = $v['text']; parse(\"r_menu\", \"l_menu\"); } } ?>
w bazie jest zapytanie:
CREATE TABLE ep_news ( id int(8) NOT NULL AUTO_INCREMENT, date datetime NOT NULL DEFAULT '0000-00-00 00:00:00', title varchar(128) NOT NULL DEFAULT '', text text NOT NULL DEFAULT '', PRIMARY KEY (id) ); CREATE TABLE ep_menu ( id int(8) NOT NULL AUTO_INCREMENT, title varchar(32) NOT NULL DEFAULT '', text text NOT NULL DEFAULT '', pos varchar(8), PRIMARY KEY (id) ); INSERT INTO ep_menu VALUES (1, "test lewego menu!!", "tafsdftadsgfasdf", "left");
Teraz odpalam sobie funkcję np. left_menu(); i teoretycznie powinno mi się pokazać tak:
Cytat
test lewego menu!!
tafsdftadsgfasdf
tafsdftadsgfasdf
ale mi się nie wyświetla w iejscu wywołania funkcji - nie ma żadnych błedów - NIC

czy moze mi ktoś pomóc??