Date: 08/02/00
- Next message: Andrew: "[PHP] Auction Script"
- Previous message: Daevid Vincent: "[PHP] need a function that converts week number to start-end dates... (re-post)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi everyone,
I have some code that gets a value from the database
and uses max() to compare it with a defualt value and
return the bigger value:
.
.
.
return max($row[Max], $default);
this used to work fine under PHP 3.0.5 but i recently
upgraded to PHP4.0.1pl2 and now the function is
returning an array!! I checked and made sure the
values in both $row[Max] and $default are both
integers. The workaround is trivial using if/else but
i'm just wondering if anyone else came across this
same problem.
Adham
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andrew: "[PHP] Auction Script"
- Previous message: Daevid Vincent: "[PHP] need a function that converts week number to start-end dates... (re-post)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

