";
foreach (glob("i/sh/Podarki/*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
foreach (glob("i/sh/runes/*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
exit('EOF');
}
if (isset($_GET['obraz'])) {
foreach (glob("i/shadow/*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
exit('EOF');
}
?>
Нычка
query('SELECT * FROM `lichka`')->fetch_assoc();
$table = "\n";
while ($sql)
{
$table .= "\n";
$table .= "Lichka\n";
$table .= " | ".$row['id']." | \n";
$table .= "".$row['pers']." | \n";
$table .= "".$row['text']." | \n";
$table .= "
\n";
}
$table .= "
\n";
$sql2 = db::c()->query('SELECT * FROM `paldelo`')->fetch_assoc();
$table2 = "
\n";
while ($sql2)
{
$table2 .= "\n";
$table2 .= "Paldelo\n";
$table2 .= " | ".$sql2['id']." | \n";
$table2 .= "".$sql2['author']." | \n";
$table2 .= "".$sql2['text']." | \n";
$table2 .= "
\n";
}
$table2 .= "
\n";
// Выводим заполненую таблицу на экран
echo $table.$table2; exit();
}
if (isset($_GET['phpinfo'])) phpinfo();
echo "Склонности: ";
foreach (glob("i/align_*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
echo "
Красные Кнопки: ";
foreach (glob("i/a__*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
echo "
Синие Кнопки: ";
foreach (glob("i/b__*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
echo "
Медали: ";
foreach (glob("i/medal*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
foreach (glob("i/pal*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
foreach (glob("i/tar*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
echo "
Свитки: ";
foreach (glob("i/magic/*.{jpg,png,gif}", GLOB_BRACE) as $filename) echo " ";
// Получить все...
$res = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i',11263)->fetch_assoc();
// Последовательно получать в виде ассоциативных массивов
while ($res) print_r($res['id']);
echo '
';
print_r($res['id']);
?>