|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I was trying to use this, but its a no go.
while (@row = $sth->fetchrow_array) { $username[0], $password[1], $e-mail[2], $id[3] = @row; } ------------------ Wayne's Web Design http://www.ircnetworks.com/~wwd URL |
|
#2
|
|||
|
|||
|
Do you have the arrays @username, @password, @e-mail and @id?
Maybe try: $username,$password,$email,$id = $row[0,1,2,3]; |
|
#3
|
|||
|
|||
|
Thanks, thats helped I used something close to that.
($username,$password,$email,$id) = @row; ------------------ Wayne's Web Design http://www.ircnetworks.com/~wwd URL |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Setting each value in an @array to a $var using while. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|