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


Posted on 16th Feb 2014 07:03 pm by admin

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


Code:
$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?

No comments posted yet

Your Answer:

Login to answer
125 Like 16 Dislike
Previous forums Next forums
Other forums

Floating Point Precision Loss
I'm writing a program to draw a three-dimensional cube (with a corner cut off) without using any 3D

Inter Company -- Resources Related Billing (Services Industry)
Hello,

My company has a scenario where:
Company A bills Company C for INTER (cross

Login Functionality Working Different on IE
This is an odd one, I have a site which has an admin section. The admin pages unsurprisingly require

Echo Tweaking help!
HI. I would like to have the output of the entered variables repeat forever, but it's stopping at th

mysql_affected_rows() usage
Possibly a MySQL issue, but the function that is not behaving in the anticipated way is a PHP functi

[newb] Image hosting help.
Hey there, I'm new to php, I know some basics and i can code PWN, I'm only 14 but I'm interested in

Internal class functions don't seem to get executed.
Hi. Can someone please put me out of my misery on this. I don't write much PHP and this has me baffl

Buggy registration system
Hey, I just started scripting in PHP, and I ran into a few problems.
Code: <?php
includ

Calculating n! using vector
#include
#include
#include

using

Price in PR
Dear Experts,
Why we have to enter the price in the PR, and why there is no free goods indicato

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash