CREATE TABLE IF NOT EXISTS 'bot_users_balans' (
'id' int(11) NOT NULL AUTO_INCREMENT,
'user_id' bigint(20) DEFAULT NULL,
'rur' decimal(8,2) DEFAULT '0',
PRIMARY KEY ('id')
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
$balansRur = $this->chekUserBalans($chat_id, 'rur');
private function chekUserBalans($chat_id, $money){
$stmt = $this->pdo->prepare("SELECT ".$money." FROM bot_users_balans WHERE user_id=?");
$stmt->execute(array($chat_id));
$balans= $stmt->fetchColumn();
return $balans; }