php - Selection list populated from database -


i have been having problem trying figure out how create selection list populated data table in database, namely options being customer's last names.

here have tried:

i trying make selection list access table "customer" , fields "customerid" appreciated, if more information needed ask.

you messing in quotes. try below.

$options .= "<option value='" . $id ."'>" . $name ."</option>"; 

and use like,

<select> <option value=0>choose</option> <?php echo $options; ?> </select> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -