Untested...
$row = mysql_fetch_array($result, MYSQL_ASSOC);
# Assuming items are comma separated in the field...
$mins = explode(',', $row['mins']);
echo "\n";
echo " \n";
for ($i=0; $i<12; $i++) {
echo " $i\n"
}
echo " \n\n";
echo "\n";
echo "
,
Maxim Maletsky
PHP Beginner
www.phpbeginner.com
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 2:14 AM
> To: Maxim Maletsky; php-general
> Subject: Re[4]: [PHP] Help with multiple select
>
> Hello Maxim,
>
To: Maxim Maletsky; php-general
>> Subject: Re[2]: [PHP] Help with multiple select
>>
>> Hello Maxim,
>> Is this what you are saying to do. I don't understand way this would
>> work and what I have hear does not work
>>
>> mins="1,4,6,";
&
> MM> and so on .
>
>
> MM> but, I would really recommend you to experiment some alternative
ways
> MM> with use of a loop. That would be way cleaner.
>
>
> MM> Sincerely,
>
> MM> Maxim Maletsky
> MM> [EMAIL PROTECTED]
>
> MM> PHP Beg
ROTECTED]
MM> PHP Beginner
MM> www.phpbeginner.com
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, August 09, 2002 12:38 AM
>> To: php-general
>> Subject: [PHP] Help with multiple select
>>
>> I ne
> Sent: Friday, August 09, 2002 12:38 AM
> To: php-general
> Subject: [PHP] Help with multiple select
>
> I need to get the data from the table and add it to the multiple
> select statement below. What I am trying to do is give the user a form
> to change his pervious selectio
I need to get the data from the table and add it to the multiple
select statement below. What I am trying to do is give the user a form
to change his pervious selections. Now doing this if there is only one thing
selected is easy. but I need a way to select multiple fields. The data
in $mins would
7 matches
Mail list logo