note 7441 modified in max by ronabop

From: Date: Wed, 13 Sep 2000 16:23:48 +0000
Subject: note 7441 modified in max by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-4829@lists.php.net to get a copy of this message
I came across a problem that the description above doesn't seem to make clear. In my implementation of php3 and mysql, if you have 3 database values such as (6,8,50), the max will come out as "8", as it seems to have trouble with integers that aren't the same length. in my case this was solved by making the database field ZEROFILL'ed, so the values compared came out as (0006,0008,0050). http://www.php.net/manual/function.max.php

« previous php.notes (#4829) next »