Fatal error: Uncaught Krugozor\Database\Mysql\Exception: Krugozor\Database\Mysql\Mysql::query: Unknown column 'owner' in 'where clause'
This commit is contained in:
parent
d30ffb335d
commit
46e559d7d3
14
main.php
14
main.php
@ -956,29 +956,29 @@ if (input::get('edit')) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center">
|
<td style="text-align: center">
|
||||||
<table BORDER=0 WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
|
<table BORDER=0 WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
|
||||||
<?php if (!empty($user['money'])): ?>
|
<?php if ($user->money): ?>
|
||||||
<tr style="background-color: #c7c7c7">
|
<tr style="background-color: #c7c7c7">
|
||||||
<td style="text-align: center; width: 100px;"><img src="i/sh/money-bag.png"></td>
|
<td style="text-align: center; width: 100px;"><img src="i/sh/money-bag.png"></td>
|
||||||
<td valign="top">Мешок денег (Масса: 0)<br><b><?= $user['money'] ?> кр.</b></td>
|
<td valign="top">Мешок денег (Масса: 0)<br><b><?= $user['money'] ?> кр.</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
if ($_SESSION['razdel'] == null) {
|
if ($_SESSION['razdel'] == null) {
|
||||||
$data_query = 'SELECT * FROM inventory WHERE owner = ?i AND dressed = 0 AND ( type < 12 OR type = 22 OR type = 23 OR type = 24 ) AND setsale = 0';
|
$data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND ( type < 12 OR type = 22 OR type = 23 OR type = 24 ) AND setsale = 0';
|
||||||
}
|
}
|
||||||
if ($_SESSION['razdel'] == 1) {
|
if ($_SESSION['razdel'] == 1) {
|
||||||
$data_query = 'SELECT * FROM inventory WHERE owner = ?i AND dressed = 0 AND type = 12 AND setsale = 0';
|
$data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND type = 12 AND setsale = 0';
|
||||||
}
|
}
|
||||||
if ($_SESSION['razdel'] == 2) {
|
if ($_SESSION['razdel'] == 2) {
|
||||||
$data_query = 'SELECT * FROM inventory WHERE owner = ?i AND dressed = 0 AND (type > 12 OR type != 22 OR type != 23 OR type != 24) AND setsale = 0';
|
$data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND (type > 12 OR type != 22 OR type != 23 OR type != 24) AND setsale = 0';
|
||||||
}
|
}
|
||||||
if ($_SESSION['razdel'] == 3) {
|
if ($_SESSION['razdel'] == 3) {
|
||||||
$data_query = 'SELECT * FROM inventory WHERE owner = ?i AND dressed = 0 AND type >= 80 AND type <= 89 AND setsale = 0';
|
$data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND type >= 80 AND type <= 89 AND setsale = 0';
|
||||||
}
|
}
|
||||||
if ($_SESSION['razdel'] == 4) {
|
if ($_SESSION['razdel'] == 4) {
|
||||||
$data_query = 'SELECT * FROM inventory WHERE owner = ?i AND dressed = 0 AND type = 200 AND setsale = 0';
|
$data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND type = 200 AND setsale = 0';
|
||||||
}
|
}
|
||||||
if ($_SESSION['razdel'] == 5) {
|
if ($_SESSION['razdel'] == 5) {
|
||||||
$data_query = 'SELECT * FROM inventory WHERE owner = ?i AND dressed = 0 AND type = 199 AND setsale = 0';
|
$data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND type = 199 AND setsale = 0';
|
||||||
}
|
}
|
||||||
$data = db::c()->query($data_query, $_SESSION['uid']);
|
$data = db::c()->query($data_query, $_SESSION['uid']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user