[nycphp-talk] I'm stupid...

D C Krook dkrook at
Wed May 21 14:54:51 EDT 2003

The option looks suspicious:

You're missing a quote that I assume you're escaping, and you're assigning a 
non-unique value to the entire set of options

    print "<option value=\\"1\\>$val</option>";


    foreach ($result as $key=>$val) {
        print "<option value=\\"$key\\">$val</option>";

>$result = $query;
>         print ("<select name=\\"order\\">");
>         foreach ($result as $key=>$val)
>         print "<option value=\\"1\\>$val</option>";
>         print ("</select>");
>         }

MSN 8 with e-mail virus protection service: 2 months FREE*

More information about the talk mailing list