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

first id from db not showing
I have a php script which displays the content of a mysql table as a html table with sorting, delete

Operating System
How in PHP or other language can I detect Operating system, ie Windows XP Home, Windows 7 Ultimate,

Sequencing or queuing parallel process
Scenario is as follows
There is one parent process say P1 and 4 child processes say A B C D

Career Change into SAP
Hai
I am sajesh ,did my diploma in Mechatronics i have a 4 years of experience in

Reg Ex
Im trying to search for the string: srv_9 (Dead ???)

I thought to use preg_match, however I d

How would I protect......
I have a from, actually, a good amount of forms. How can I make it so you can't type the characters:

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

Help uploading .JPG
I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what c

Warehouse Management
Hi,

On our system, we have two storage locations ( A and B ) where A is the main factory

Working with popups and such in a class
I've recently started building my applications completely enclosed in classes. I like the fact that

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