PATH:
root
/
mbmadmin1234
<?php function menu($id_tmp) { include_once 'connection.php'; // connection(); $result = $db-fetchAll("menu", "id, nazwa, tekst, typszablonu", "WHERE rodzic='$id_tmp' ORDER BY id asc"); foreach($result as $row) { $id = $row['id']; $nazwa = $row['nazwa']; $tekst = $row['tekst']; $typszablonu = $row['typszablonu']; if($tekst == 0 || $tekst =="") { echo "<li><a href=\"$typszablonu\">$nazwa</a></li>"; } else{ echo "<li><a href=\"$typszablonu?s=$tekst\">$nazwa</a></li>"; } } // $zapytanie ="SELECT `id`, `nazwa`, `tekst`, `typszablonu` FROM menu WHERE rodzic='$id_tmp' ORDER BY id asc"; // $result = mysql_query($zapytanie)or die(mysql_error()); // while($result_oferta = mysql_fetch_array($result)) // { // $id = $result_oferta[0]; // $nazwa = $result_oferta[1]; // $tekst = $result_oferta[2]; // $typszablonu = $result_oferta[3]; // if($tekst == 0 || $tekst =="") // { // echo "<li><a href=\"$typszablonu\">$nazwa</a></li>"; // } // else{ echo "<li><a href=\"$typszablonu?s=$tekst\">$nazwa</a></li>"; } // } }
[-] favicon.ico
[edit]
[+]
menu
[-] fun.php
[edit]
[+]
produkty
[+]
kategorie
[+]
..
[+]
tmp
[-] TAGI.php
[edit]
[-] session.php
[edit]
[+]
vendor
[-] functions.js
[edit]
[-] core.php
[edit]
[-] submit.php
[edit]
[+]
aktualnosci
[+]
tinymce
[+]
css
[+]
images
[+]
users
[-] functions[tinymce5].js
[edit]
[-] test.php
[edit]
[-] functions.php
[edit]
[-] check.php
[edit]
[-] reset.php
[edit]
[+]
locales
[+]
teksty
[-] content.php
[edit]
[-] news.php
[edit]
[+]
filemanager
[-] jquery-1.8.2.js
[edit]
[+]
pliki
[+]
fonts
[-] index.php
[edit]
[+]
js