PHP Coding
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
Unread Codewalkers Forums Sponsor:
Old December 20th, 2010, 12:37 AM
redbrad0 redbrad0 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
Join Date: Jul 2008
Posts: 4 redbrad0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 44 sec
Reputation Power: 0
PHP 5 - Non-static method PEAR::isError()

Since upgrading to PHP I am getting this error in all of my php pages. My customer error handling is grabbing and not displaying the error, but I would like to fix it instead of just hiding it. I have been looking all over and I cant seem to find anything. Can someone help give me an idea on how to fix this, if it can be fixed?

[type] => 2048
[message] => Non-static method PEAR::isError() should not be called statically
[file] => /home/www/
[line] => 14

try	{
	require_once 'inc_config.php';

	// Pull all the states that we have outlets in
	$query = "select
	         	ORDER BY ID
	         			desc LIMIT 1000";
  $res =& $db['myDatabase']->query($query);
  if (!PEAR::isError($res)) {
		while ($res->fetchInto($row))	{
			$dbID		= $row['ID'];
			$dbName	= $row['Name'];
  } else
    throw new MyException($_SERVER['SCRIPT_NAME'] . ":", MyException::UNKNOWN_ERROR);
} catch (TixException $ex) {

Reply With Quote

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > PHP 5 - Non-static method PEAR::isError()

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap