haiii all,

I am new to php, i have a question regarding dropdownlist in php file.
If i have a table with 3 columns and 3 rows ,in the last column i have to display dropdown list for each row.

I am able to display dropdownlist under the table but i am not able to display it inside the table for each row.can any one please tell me how to display a drop down list in each row of the table.


Note: i am getting dropdownlist data from mysql database table.ie.from a row in a table.

Try this...

<table border="1">
<tr><td>data</td><td>
<select size="1" name="sel">
<option name="x">x</option>
<option name="y">y</option>
<option name="z">z</option>
</select>
</td><td>data</td></tr>
</table>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.