Jump to content

Menu / List Populated by Mysql Problem


alexguz79

Recommended Posts

Hey...

 

Hope you can help me on this one:

 

I have a menu witch information is stored in a database, i can get the info to load the problem is insted of giving me a dropdown menu with 10 options, is giving me 10 dropdown menus with 1 option

 

here's the code

 

<label>
<select name="players" id="players">
  <option value="<?php $id; ?>"><?php echo $fname; ?> <?php echo $lname; ?></option>
</select>
</label>

Link to comment
Share on other sites

1. Do not bump a post after just 15 minutes. The reason most posts don't get a quick (or good) respons is due to the lack of providing th correct information.

 

2. That code above tells us nothing about what the problem is. That code above would produce a single select list with jsut one optino. So, you obviously have not provided the relevant information for anyone to respond thoughtfully. Where is the code for the query and extracting the data?

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.