note 107038 modified in function.mysql-fetch-assoc by danbrown

From: Date: Tue, 03 Jan 2012 21:48:19 +0000
Subject: note 107038 modified in function.mysql-fetch-assoc by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185287@lists.php.net to get a copy of this message
If you use the MySQL MAX() function as part of your query, reference it with, for example: <?php $ID = $result['MAX(ID)']; ?> not <?php $ID = $result['MAX(ID)']; ?> as I tried ... I hope that saves someone a few minutes ... --was-- If you use the MySQL MAX() function as part of your query, reference it with, for example: <?php $ID = $result['MAX(ID)']; ?> not <?php $ID = $result['MAX(ID)']; ?> as I tried after reading q-tech at phreaker dot net below ... I hope that saves someone a few minutes ... http://php.net/manual/en/function.mysql-fetch-assoc.php

« previous php.notes (#185287) next »