Jump to content

[SOLVED] Fatal error: Call to a member function fetchrow() on a non-object in C:\xampp\ht


seany123

Recommended Posts

okay i have this query and everytime i add `item_id`=? to it... it gives me the error in the title...

 

 


$query = $db->execute("select * from items where `player_id`=?, `item_id`=?", array($player->id, 1));
$item = $query->fetchrow();


//if 1 or more rows are found then update Quantity.
if ($query->recordcount() >= 1){

 

any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.