|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-30 00:34 UTC] starr at evilemail dot com
...Pear DB / Mysql / $db is a pear db object Using a mysql query w/ MIN() --- i.e. the following $sql = "SELECT MIN(time) from mytable"; $time = $db->getAll( $sql, DB_FETCHMODE_ASSOC ); Returns a value in $time[0]['MIN(time)']; NOT in $time[0]['time']; PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Use proper SQL column aliases instead ("SELECT min() as min.."). Tomas V.V.Cox