Initial commit & tests

This commit is contained in:
Igor Barkov [iwork]
2019-01-11 18:02:57 +02:00
parent f9a8e80cfe
commit 189904a127
2 changed files with 135 additions and 1 deletions

View File

@@ -28,4 +28,8 @@ foreach ($res->fetch_assoc() as $value) {
}
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();
while ($row = $result->fetch_assoc()) {
$iteminfo[] = new item($row);
}