Jump to content

What does this error mean?


Kestrad

Recommended Posts

I'm creating a php class, but I receive the following error: Wrong parameter count for mysql_fetch_assoc(). It tells me that the problem is in the constructor, which is as follows:

 

function __construct($arg1 = 0){
    $q = mysql_fetch_assoc('getQuoteById', $arg1);
    $this->quote = $q['quote'];
}

 

getQuoteById is a sql query:

SELECT id, quote FROM quote WHERE id=%d

 

where id and quote are the two columns in the table quote. Could someone please explain to me what this error means? Thanks!

Link to comment
https://forums.phpfreaks.com/topic/187525-what-does-this-error-mean/
Share on other sites

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.