Fatal error: Call to undefined function: fetch_row()

Please report bugs here!

Moderator: Thorsten

Post Reply
scrappy
Posts: 15
Joined: Sun Jan 08, 2006 6:31 am

Fatal error: Call to undefined function: fetch_row()

Post by scrappy »

Just installed phpMyFAQ 1.5.5, and everything installed beautifully, and is up and running ... but, when I login as admin, the Startpage generates the following error:

Fatal error: Call to undefined function: pg_fetch_row() in /usr/local/www/phpmyfaq.1.5.5/inc/pgsql.php on line 253

the code in question being:

function getOne($query)
{
$row = $this->fetch_row($this->query($query));
return $row[0];
}

I can't find a reference to fetch_row in any of the other db modules, and not exactly sure what its looking for there ...
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please try this function:

Code: Select all

	function getOne($query)
	{
		$row = $this->fetch_array($this->query($query));
		return $row[0];
	}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scrappy
Posts: 15
Joined: Sun Jan 08, 2006 6:31 am

Post by scrappy »

Fatal error: Call to undefined function: fetch_array() in /usr/local/www/phpmyfaq.1.5.5/inc/pgsql.php on line 253
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this should work:

Code: Select all

 function getOne($query)
{
$row = pg_fetch_row($this->query($query));
return $row[0];
} 
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scrappy
Posts: 15
Joined: Sun Jan 08, 2006 6:31 am

Post by scrappy »

d'oh, I did try $this->pg_fetch_row(), figuring there was something special abotu the $this-> part :( didn'tthink to get rid of the $this-> ...

that does it ... thanks ...
Post Reply