array error

From: Date: Wed, 27 Sep 2000 10:19:29 +0000
Subject: array error
Groups: php.general 
Request: Send a blank email to php-general+get-17882@lists.php.net to get a copy of this message
Hi, I currently work with two "servers", one (localhost) at home and one on our hosting site. I added some code last night that worked perfectly last night, but for some reason it is not working on the hosting site. I checked the one at home again and that is fine. Here is the code. $lastdate = explode("-","1980-01-01"); $thedate = explode("-",$row[signed_tradeable]); if ($thedate > $lastdate) { $lastdate = $thedate; } On the host site I am getting a "Cannot compare object or array" message. This same piece of code works perfectly at home. Any ideas around this? Thanks in advance, Michael. Regards, Webmaster, Real General Manager Inc. http://www.realgm.com

« previous php.general (#17882) next »