How come I *can* do these commands:

        $row = mysql_fetch_array($result,MYSQL_ASSOC);
        while(list($myVariableName,$sqlFieldName)=each($row)) 
        { $$myVariableName = $sqlFieldName; }

But I can't do this command?

        
while(list($myVariableName,$sqlFieldName)=each(mysql_fetch_array($result
,MYSQL_ASSOC))) 
        { $$myVariableName = $sqlFieldName; }

Notice the only differenceis that the first one assigns the array to
$row FIRST, whereas the second tries to avoid that extra call,
especially since I know I'm only getting one row back. Hmmm?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to