Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function iterate($what, $depth = 0) {
- // $DB = new mysqli("localhost","user","password");
- $ga = $DB->query("SELECT * FROM Depo__Kategoriler WHERE Sahip = '".$what."' ORDER BY Aciklama");
- for ($a = 0; $a < $ga->num_rows; $a++) {
- $aa = $DB->vars($ga,$a);
- echo str_repeat(".", $depth).$aa["Aciklama"]."<br />\n";
- iterate($aa["Id"], $depth + 1);
- }
- }
- iterate(0,0);
Advertisement
Add Comment
Please, Sign In to add comment