[thelist] PHP help with a loop and array

CDitty mail at redhotsweeps.com
Tue Nov 28 17:11:31 CST 2000


No.  This is one way of taking a mysql result and putting it in an array.

Chris

At 04:35 PM 11/28/00 , you wrote:
>Hi Chris,
>
>
>Sorry ... not a PHP guru ...
>
>Could it be because you are declaring $picresult as a scalar with the
>$picresult = ...
>
>... and then outputting it as an array?   $picresult[$i]
>
>That might explain the 'null' results when the index is >0...
>
>Just a guess,
>
>Ron L.
>
>
>-----Original Message-----
>From: CDitty [mailto:mail at redhotsweeps.com]
>Subject: [thelist] PHP help with a loop and array
>
>         $picresult = mysql_fetch_array($picsql);
>         echo $picresult[$i] . " - Result<br>";
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list