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
https://forums.phpfreaks.com/topic/202466-additional-drop-downs-not-displaying/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.