Results 1 to 9 of 9

Thread: [Resolved]PHP Help

Threaded View

  1. #1

    Thread Starter
    Lively Member Rivkah's Avatar
    Join Date
    Jun 2010
    Location
    192.168.1.16
    Posts
    93

    Resolved [Resolved]PHP Help

    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>';} ?>
    Last edited by Rivkah; Feb 1st, 2011 at 05:24 PM. Reason: Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width