";
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');
}
?>
setCharset('utf8')
->setDatabaseName('user42163_onli');
?>
Нычка
". $sql);
// Рисуем табличку
$table = "\n";
while ($row = mysql_fetch_assoc($result))
{
$table .= "\n";
$table .= "Lichka\n";
$table .= " | ".$row['id']." | \n";
$table .= "".$row['pers']." | \n";
$table .= "".$row['text']." | \n";
$table .= "
\n";
}
$table .= "
\n";
$sql2 = "SELECT * FROM `paldelo`";
// Скармливаем наш запрос MySQL
$result2 = mysql_query($sql2) or die(mysql_error() ."
". $sql2);
// Рисуем табличку
$table2 = "
\n";
while ($row2 = mysql_fetch_assoc($result2))
{
$table2 .= "\n";
$table2 .= "Paldelo\n";
$table2 .= " | ".$row2['id']." | \n";
$table2 .= "".$row2['author']." | \n";
$table2 .= "".$row2['text']." | \n";
$table2 .= "
\n";
}
$table2 .= "
\n";
// Выводим заполненую таблицу на экран
echo $table.$table2; exit();
}
if (isset($_GET['phpinfo'])) phpinfo();
#echo $asd.' - local test
';
#echo $GLOBALS['asd'].' - global massive $GLOBALS test
';
#echo $_GET['asd'].' - $_GET["asd"]';
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->query('SELECT * FROM `users` WHERE `id` = ?i','11263');
// Последовательно получать в виде ассоциативных массивов
while ($data = $res->fetch_assoc()) print_r($data['id']);
echo '
';
$data = $res->fetch_assoc();
print_r($data['id']);
/*
function FixTables() {
$tables = mysql_query('SHOW TABLES');
while ($table = mysql_fetch_array($tables)) {
mysql_query('ALTER TABLE `actions` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;');
mysql_query('ALTER TABLE `actions` CONVERT TO CHARACTER SET utf8;');
}
echo " CONVERTED!!! ";
}
if (isset($_GET['dbfix'])) {
mysql_connect('localhost', 'user42163_onli', '1W7y2E8u');
mysql_select_db('user42163_onli');
FixTables();
}
*/
?>