Posted by Jerry Stuckle on 12/17/37 11:53
monomaniac21 wrote:
> hi all
>
> is there a function to convert all values of array $row into seperate
> variables:
>
> $row = mysql_fetch_array($result);
>
> // i dont want to have to do this anymore :-)
>
> $name = $row['name'];
> $address1 = $row['address1'];
> $address2 = $row['address2'];
> etc etc etc
>
>
>
>
> Regards
>
> marc
>
Why not just
list($name, $address1, $address2) = mysql_fetch_array($result);
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|