tests
This commit is contained in:
parent
189904a127
commit
e22476a631
@ -29,7 +29,7 @@ foreach ($res->fetch_assoc() as $value) {
|
|||||||
print_r($items);
|
print_r($items);
|
||||||
|
|
||||||
# $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value}
|
# $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value}
|
||||||
$result = db::c('SELECT * FROM `shop` WHERE count > 0')->query();
|
$result = db::c()->query('SELECT * FROM `shop` WHERE count > 0');
|
||||||
while ($row = $result->fetch_assoc()) {
|
while ($row = $result->fetch_assoc()) {
|
||||||
$iteminfo[] = new item($row);
|
$iteminfo[] = new item($row);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user