[PHP] Looping through a list - Newbie question

2003-08-27 Thread James Johnson
Hi, I have a list contained in a session var. I want to loop through the list, getting the value of the current item, then do a query based on that value. Is there an easy way to do this, or do I need to convert the list to an array first? In the code below, $id isn't being set. Here's my code

RE: [PHP] Looping through a list - Newbie question

2003-08-27 Thread Javier Tacon
['sv_CampusList']); foreach($tmpArr as $id) { echo $id; } -Mensaje original- De: James Johnson [mailto:[EMAIL PROTECTED] Enviado el: miƩrcoles, 27 de agosto de 2003 4:45 Para: [EMAIL PROTECTED] Asunto: [PHP] Looping through a list - Newbie question Hi, I have a list contained in a session var. I

Re: [PHP] Looping through a list - Newbie question

2003-08-27 Thread CPT John W. Holmes
From: James Johnson [EMAIL PROTECTED] I have a list contained in a session var. I want to loop through the list, getting the value of the current item, then do a query based on that value. Is there an easy way to do this, or do I need to convert the list to an array first? In the code below,

RE: [PHP] Looping through a list - Newbie question

2003-08-27 Thread James Johnson
To: James Johnson; [EMAIL PROTECTED] Subject: Re: [PHP] Looping through a list - Newbie question From: James Johnson [EMAIL PROTECTED] I have a list contained in a session var. I want to loop through the list, getting the value of the current item, then do a query based on that value