2018-01-28 16:40:49 +00:00
|
|
|
<?php
|
2018-02-28 21:16:09 +00:00
|
|
|
include '../config.php';
|
2018-03-03 18:52:22 +00:00
|
|
|
|
|
|
|
spl_autoload_register(function ($class_name) {
|
|
|
|
include '../classes/' . $class_name . '.php';
|
|
|
|
});
|
|
|
|
|
|
|
|
//include_once '../classes/n.php';
|
|
|
|
//include_once '../classes/nick.php';
|
2018-02-28 21:16:09 +00:00
|
|
|
//include '../functions.php';
|
2018-01-29 18:21:55 +00:00
|
|
|
|
2018-02-28 21:16:09 +00:00
|
|
|
//showinf_pers(10736,1);
|
2018-01-29 18:21:55 +00:00
|
|
|
|
2018-02-28 21:16:09 +00:00
|
|
|
//showinf_pers(10736);
|
|
|
|
|
2018-03-31 13:47:59 +00:00
|
|
|
#$row = db::c()->query('select * from `bank` WHERE owner=10929 OR owner=11221')->fetch_assoc_array();
|
|
|
|
#print_r($row);
|
|
|
|
#echo '<hr>';
|
|
|
|
#$row2 = db::c()->query('select * from `bank` WHERE owner=10929 OR owner=11221')->fetch_row_array();
|
|
|
|
#print_r($row2);
|
|
|
|
#echo '<hr>';
|
2018-03-01 14:51:01 +00:00
|
|
|
|
2018-03-31 13:47:21 +00:00
|
|
|
// Получить все...
|
2018-03-31 13:58:36 +00:00
|
|
|
$items = [];
|
2018-03-31 13:51:46 +00:00
|
|
|
$res = db::c()->query('SELECT name,img,type,id FROM inventory WHERE owner = 11263 AND dressed = 1');
|
2018-03-31 13:58:36 +00:00
|
|
|
foreach ($res->fetch_assoc() as $value) {
|
2018-03-31 14:05:45 +00:00
|
|
|
$items[$value[0]] = $value;
|
2018-03-31 13:47:21 +00:00
|
|
|
}
|
2018-03-31 13:58:36 +00:00
|
|
|
print_r($items);
|
|
|
|
|
|
|
|
# $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value}
|