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



Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Old December 19th, 2010, 11:37 PM
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?


Quote:
[type] => 2048
[message] => Non-static method PEAR::isError() should not be called statically
[file] => /home/www/domain.com/public_html/_test.php
[line] => 14



Code:
<?php
try	{
	require_once 'inc_config.php';

	// Pull all the states that we have outlets in
	$query = "select
	              ID,
	              Name
	          FROM
	             TableName
	         	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) {
	$ex->errorMessage();
}
?>

Reply With Quote
Reply

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 - 2014, Jelsoft Enterprises Ltd.

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