Jon Earle wrote:

 $ret_val = 0;
 if ($aday == $bday) {$ret_val = 0;}
 else {$ret_val = ($aday < $bday) ? -1 : 1;}
 return ret_val;

I could be wrong, but I think you need some extra brackets on the else line...

else {$ret_val = (($aday < $bday) ? -1 : 1);}

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to