Compare arrays?
| From: | Real GM Webmaster | Date: | Tue, 26 Sep 2000 22:14:57 +0000 |
| Subject: | Compare arrays? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17796@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