Shadow Dan
Sh4dowDan
I was trying to make query to see value of paw and fur storage so i could show how many points of paw and fur i have.
Paw and fur is key 2500 always and i need to see value of this storage.
I've been trying this way but nothing.
When i do this:
There is error:
92 line is database query.
Still need some help with database queries.
Paw and fur is key 2500 always and i need to see value of this storage.
Code:
'.$pawandfur[0].'
Code:
$id = $player->getCustomField("id");
$pawandfur = $SQL->query("SELECT * FROM `player_storage` WHERE `player_id` = ".$id." AND `key` = `2500`;");
When i do this:
Code:
$id = $player->getCustomField("id");
$pawandfur = $SQL->query("SELECT * FROM `player_storage` WHERE `player_id` = ".$id." AND `key` = `2500`;")->fetch();
Code:
Fatal error: Call to a member function fetch() on boolean in *:\****\****\****\characters.php on line 92
Still need some help with database queries.