Hi Shawn i just tested your code and it works fine on my windows system
running iis
I couldnt get it to work on my apache and unix som i think you have to build
an array for the options.
in the if statement.
I am quite new at this but i got to work when i added a array for my unix
and my apache


----- Original Message -----
From: "Shawn" <[EMAIL PROTECTED]>
To: "FreeTrade" <[EMAIL PROTECTED]>
Sent: Friday, August 25, 2000 8:25 PM
Subject: [FreeTrade] Very strange Database problem. Need HELP


> Hi;
>
> I have modified the add_item and admin_item screens to allow the use of
drop
> down menus to select a few options such as size, condition ot item etc.  I
> have 6 drop downs like this all based upon the following code.  This code
is
> from the admin_item screen.  5 of these work fine and display the correct
> current value in the admin_item screen.  But the 6th which is based on the
> same code and the same type of database field in the same table does not
> display the current value.  It just displays the first item in the list.
> What am I overlooking?
>
>
> ---------This code works------------
> /* Determine if Antique */
>  print("<TR><TD><B>" . L_ADMINITEM_ANTIQUE . "</B></TD>\n");
>  print("<TD COLSPAN=\"2\"><SELECT NAME=\"inputAntique\">");
>  print("<OPTION VALUE=\"No\"");
>  if($itemAntique=="No")
>  {print(" SELECTED");}
>  print(">No");
>  print("<OPTION VALUE=\"Yes\"");
>  if($itemAntique=="Yes")
>  {print(" SELECTED");}
>  print(">Yes");
>  print("</SELECT></TD></TR>\n");
>
> ----       This code does not work-----------------
> /* Determine if Hollow */
>  print("<TR><TD><B>" . L_ADMINITEM_CONDITIONHOLLOW . "</B></TD>\n");
>  print("<TD COLSPAN=\"2\"><SELECT NAME=\"inputConditionHollow\">");
>  print("<OPTION VALUE=\"Hollow\"");
>  if($itemConditionHollow=="Hollow")
>  {print(" SELECTED");}
>  print(">Hollow");
>  print("<OPTION VALUE=\"Not Hollow\"");
>  if($itemConditionHollow=="Not Hollow")
>  {print(" SELECTED");}
>  print(">Not Hollow");
>  print("</SELECT></TD></TR>\n");
>
> HELP
>
> Shawn
>
>
>
>
> ------------------------------------------------------------
> To subscribe:    [EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Site:            http://www.working-dogs.com/freetrade/
> Problems?:       [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to