In perl I can say something like: ($var1, $var2) = $sqh->fetchrow_array() to assign column values to more than one variable at a time. So I tried similar syntax with PHP: ($var1, $var2) = mysql_fetch_row($sqh); but could not seem to work it out. I know you can do this with a temporary array, and then take values out of the array. But it would be nice to omit the temporary array. Is it possible? Egan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP] Assign multiple variables from mysql_fetch_row() ... Egan
- Re: [PHP] Assign multiple variables from mysql_fetch_r... Rasmus Lerdorf
- Re: [PHP] Assign multiple variables from mysql_fet... Ryan Fischer
- Re: [PHP] Assign multiple variables from mysql... Rasmus Lerdorf
- Re: [PHP] Assign multiple variables from m... Ryan Fischer
- Re: [PHP] Assign multiple variables f... Mark Maggelet
- Re: [PHP] Assign multiple variabl... Ryan Fischer
- Re: [PHP] Assign multiple var... Mark Maggelet
- Re: [PHP] Assign multiple var... Rasmus Lerdorf
- Re: [PHP] Assign multiple variables from mysql... Mark Maggelet
- Re: [PHP] Assign multiple variables from m... Ryan Fischer