bank fixes
This commit is contained in:
parent
1bce446b16
commit
722f8514c7
15
bank.php
15
bank.php
@ -13,23 +13,12 @@ if ($user['battle'] != 0) {
|
|||||||
$cost_login = 25;
|
$cost_login = 25;
|
||||||
|
|
||||||
######## ОБЩИЕ ЗАПРОСЫ В БАЗУ ###
|
######## ОБЩИЕ ЗАПРОСЫ В БАЗУ ###
|
||||||
|
$bank = db::c()->query('SELECT `id`, `cr`, `ekr` FROM `bank` WHERE `id` = ?i', $_SESSION['uid'])->fetch_assoc();
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
function inschet($userid)
|
|
||||||
{
|
|
||||||
$banks = db::c()->query('SELECT `id` FROM `bank` WHERE `owner` = ?i', $userid);
|
|
||||||
echo "<select style='width:150px' name=id>";
|
|
||||||
while ($rah = $banks->fetch_assoc()) {
|
|
||||||
echo "<option>" . $rah['id'] . "</option>";
|
|
||||||
}
|
|
||||||
echo "</select>";
|
|
||||||
}
|
|
||||||
|
|
||||||
$bank = db::c()->query('SELECT `id`, `cr`, `ekr` FROM `bank` WHERE `id` = ?i', $_SESSION['bankid'])->fetch_assoc();
|
|
||||||
if (!$bank['id']) {
|
if (!$bank['id']) {
|
||||||
db::c()->query('INSERT INTO `bank` (`id`) VALUES (?i)', $_SESSION['bankid']);
|
db::c()->query('INSERT INTO `bank` (`id`) VALUES (?i)', $_SESSION['uid']);
|
||||||
$_SESSION['bankid'] = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user