Re: dynamically fill list box
| From: | gee | Date: | Thu, 14 Mar 2002 19:11:06 +0000 |
| Subject: | Re: dynamically fill list box | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88555@lists.php.net to get a copy of this message | ||
Sorry....... The error I get on members.php page is
"if ( == paid)" is printed if 'paid' is selected
or "if ($paid == no)" is printed if 'not paid' is selected
from this piece of code
print "<tr><td class=LabelColumn>Paid:</td><td
class=TextColumn><select
name='paid' value='$row->paid'>
<option value='if ($paid == paid)'>paid</option>
<option value='if ($paid == no)'>not paid</option>
</select></td></tr>";
----- Original Message -----
From: "Jason Wong" <php-general@gremlins.com.hk>
To: <php-general@lists.php.net>
Sent: Thursday, March 14, 2002 9:36 PM
Subject: Re: [PHP] dynamically fill list box
> On Thursday 14 March 2002 16:07, gee wrote:
> > A real newbie would be grateful for some help.
> > I have a sports club membership database (Mysql) with first and last
names,
> > address and paid or not paid.
> > In edit.php I would like to be able to pre-fill a list box with whether
the
> > person has paid or not, change if necessary, update the database
> > and view the resultant changes in members.php
> > I have tried the following in edit.php but can't get it to work.
>
> By stating *how* it doesn't work makes it easier for others to help you.
For
> starters, do you get any errors?
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>
> /*
> I hope you millionaires are having fun! I just invested half your life
> savings in yeast!!
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>