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

C - Reading a file into a byte array
Hi,

I'm trying to read a file into a byte array in C. I have to use C as this is for a loadru

Email Script does not reach destination
Hey Guys look at this code snippet :
Code:
//read a line from the file

$myFile = "

mySQL and PHP search
Hello,
I am trying to code a project and ran into a brick wall with one of my pages. I am pretty

Will an XHTML DOCTYPE interfere with my PHP if I'm not experienced enough?
I've read this article here: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/

In a nutshe

php call servlet
I have done a php backup application .
So there is a form that user pick some files to zip and d

Change Sort Order to Display Newest File First
Hi Guys,

I have a page that sorts the contents (PDFs) of a directory and displays them on the

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

PHP using IF to display error
i have a MySQL query and i want to display 1 thing only if the number of affected rows is >=1

building a function with multiple outputs
I want to build a function that has multiple outputs.

I know but am not to sure how I should

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

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