Re: new set of eyes?
| From: | olinux | Date: | Sat, 06 Dec 2003 18:45:49 +0000 |
| Subject: | Re: new set of eyes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172078@lists.php.net to get a copy of this message | ||
try this:
$ar = array();
while ($row = mysql_fetch_assoc($sql)) {
$ar[] = $row;
}
olinux
--- Jas <jason.gerfen@scl.utah.edu> wrote:
> I think I am loosing my mind this afternoon... could
> someone review this
> snippit and tell me why it isn't working?
>
> $sql = mysql_query("SELECT $i FROM $table WHERE $i =
> $i",$db)or
> die(mysql_error());
> while($b = mysql_fetch_array($sql)) {
> while($ar = current($b) != 0) {
> $v = array();
> list($v) = explode("}",$ar); }
> print_r($v); }
>
> I am hoping to get something like
> array([0]=>first row of data[1]=>second row of data)
>
> Any help would be great...
> Jas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/