mysql_login(); $_POST['dir'] = str_replace('/' , '' , $_POST['dir']); echo '
'; echo gibKinder($_POST['dir'], $table_prefix); echo '
'; function gibKinder($vater = 0, $table_prefix) { global $sql; $query = 'SELECT * FROM '.$table_prefix.'posts WHERE post_type = "page" AND post_parent = "'.(int)$vater.'" AND post_status NOT LIKE "auto-draft" ORDER BY ID DESC'; echo ""; return $out; } ?> 2 ) {//The 2 accounts for . and .. echo ""; } }*/ ?>