Ok, wasn't sure on how to even search this so sorry if this has already been recently covered.
My problem: I am trying to get it to display my results from MySQL into a combobox.
I know the while part works fine because I use it to display what is from the MySQL earlier in the page..Here is the code that is giving me problems (No errors report on the page).
What I want it to do is to use the option value as the id of the MySQL entry and the name of it as the name in the table.
PHP Code:<?php while ($row = $connector->fetchArray($result)) {echo '<option value="'.$row['ID'].'">'.$row['name'].'</option>';} ?>




Reply With Quote