Jump to content

Additional Drop Downs not Displaying


FraggleRock

Recommended Posts

Hello Everyone,

 

So I am a bit confused with this and needed some assistance.  Maybe I am just blind.

 

I have the following code that SHOULD generate 3 seperate drop down lists for the user to use on the front end.  The first drop down list shows up great and everything is all good.  the 2nd and 3rd do not.  Using the same code from the first.  I gotta believe that it is something in my syntax, but I am just not seeing it. 

 

Thanks for the help.

 

Fraggle

echo 'Primary Category: <select name="CategoryID1">';

while($Cat = mysqli_fetch_array($CategoryResult, MYSQLI_NUM))
{
echo "<option value=\"$Cat[0]\">$Cat[1]</option>";
}

echo '</select>

Secondary Category: <select name="CategoryID2">';

while($Cat1 = mysqli_fetch_array($CategoryResult, MYSQLI_NUM))
{
echo "<option value=\"$Cat1[0]\">$Cat1[1]</option>";
}

echo '</select>

Permissions: <select name="AccessTypeID">';

while($ATID = mysqli_fetch_array($AccesstypeResult, MYSQLI_NUM))
{
ECHO "<option value=\"$ATID[0]\">$ATID[1]</option>";
}
echo '</select>';

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.