note 110315 deleted from function.mysql-fetch-array by danbrown

From: Date: Wed, 17 Oct 2012 21:23:08 +0000
Subject: note 110315 deleted from function.mysql-fetch-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191384@lists.php.net to get a copy of this message
Note Submitter: espertalhao04 at hotmail dot com ---- easiest way to get ALL results from a query in an array: <?php while($results[@$i++]=mysql_fetch_array($result)){} /*inside $i you have the count of elements, starting at 1. *you get an array with $i elements where the element $i is a bool(false) */ ?>

« previous php.notes (#191384) next »