Jump to content

Recommended Posts

Fatal error: Call to a member function fetchrow() on a non-object on line 30

 

The strange thing is that this didnt happen before i moved to localhost...

 

anyway here is the code...

 

$query0 = $db->execute("select * from `spylog` where `player_id`=? order by `time` desc limit 20", array($player->id));
while($spy = $query0->fetchrow())
{

 

thanks

It stands for PHP Data Objects, basically it's an abstraction layer for PHP to communicate with your chosen query language.

 

I assume that since you dont know what it is, your not using it...

Basically it allows you to chane the query language used on your website without having to make drastic changes to your PHP code.

 

If you wish to look into it and perhaps learn how to use it it';s in the manual.

 

PDO

 

I first saw it used in Rasmus Lerdorfs toys page in his post about using Oauth to post to twitter.

 

http://toys.lerdorf.com/archives/50-Using-pecloauth-to-post-to-Twitter.html#extended

It stands for PHP Data Objects, basically it's an abstraction layer for PHP to communicate with your chosen query language.

 

I assume that since you dont know what it is, your not using it...

Basically it allows you to chane the query language used on your website without having to make drastic changes to your PHP code.

 

If you wish to look into it and perhaps learn how to use it it';s in the manual.

 

PDO

 

I first saw it used in Rasmus Lerdorfs toys page in his post about using Oauth to post to twitter.

 

http://toys.lerdorf.com/archives/50-Using-pecloauth-to-post-to-Twitter.html#extended

 

i dont need that for the above to work surely.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.