Re: Array problem....
| From: | Jas | Date: | Wed, 10 Dec 2003 23:44:02 +0000 |
| Subject: | Re: Array problem.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172405@lists.php.net to get a copy of this message | ||
having no idea you could use numbers as session variable names I kinda feel like a retard right now. You solution worked, thank you very much.
Jas
Chris W. Parker wrote:
Jas <mailto:jason.gerfen@scl.utah.edu>on Wednesday, December 10, 2003 3:21 PM said:while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) = mysql_fetch_row($sql_subs)) { $_session['<something to automaticly increment session var>'] = "$sub+$msk+$dns01... }No exactly sure what you mean but here goes: $iCtr = 0; while(list(...)) = mysql_fetch_row(...)) { $_SESSION[$iCtr] = "$sub+$msk..."; $iCtr++; } HTH, Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/