Ola a todos! Estou tendo um problema com esse script: 84 -> elseif($buy_offer['offer_type'] == 'storage')
85 -> {
86 -> $player = $buy_player["id"];
87 -> $storage = $buy_offer["count1"];
88 -> /*foreach($SQL->query('SELECT * FROM `player_storage` (`player_id`, `key`, `value`) VALUES ('.$player.', '.$storage.', 1)') as $stora)*/
89 -> $stor = $SQL->query('SELECT * FROM `player_storage` WHERE ((`player_storage`.`player_id` = '.$player.' AND `player_storage`.`key` = '.$storage.'));');
90 -> if($stor['player_id','key'] === ($player,$storage) {
91 -> echo 'Error: You have this '.$buy_offer['offer_name'].'. Please back to Shop and buy other magic.';
92 -> }
93 -> else {
94 -> $save_transaction = 'INSERT INTO z_shop_history_storage (id, to_name, to_account, from_nick, from_account, price, storage, trans_state, trans_start, trans_real) VALUES (NULL, \''.$buy_player["name"].'\', \''.$buy_account["id"].'\', \''.$buy_from.'\', \''.$loggedAccId.'\', \''.$buy_offer['points'].'\', \''.$buy_offer['count1'].'\', \'realized\', \''.time().'\', \''.time().'\');';
95 -> $SQL->query($save_transaction);
96 -> $premiumPoints = $premiumPoints - $buy_offer['points'];
97 -> $storage_add = 'INSERT INTO `player_storage` (`player_id`, `key`, `value`) VALUES ('.$player.', '.$storage.', 1);';
98 -> $SQL->query($storage_add);
99 -> $SQL->query("UPDATE accounts SET premium_points=".$premiumPoints." WHERE name='".$buy_player_account."';");
100 -> echo '<h2>Magic added!</h2><b>'.$buy_offer["offer_name"].'</b> has been added to <b>'.$buy_player["name"].'</b>\'s items (they will get this item after relog).<br /> <b>'.$buy_offer["points"].' premium points</b> have been deducted from your account.<br />You now have <b>'.$premiumPoints.' premium points</b>.<br /><a href="/index.php/p/v/shop">GO TO MAIN SHOP SITE</a>';
101 -> }
102 -> }
E esta dando erro na linha 90:
if($stor['player_id','key'] == ($player,$storage) { Erro: Eu sei qual é o erro, mais não sei como fazer para verificar! Pois quero que verifique se o player tem uma value na tabela player_storage do banco de dados! Algue pode me ajudar?