Hi there.
I'm a newb in php so, you'll have to forgive me for such a simple question i guess.
I need to form out a table from the values, users enter in textareas.
For example
I need to get all data entered by user into a table using for example:
So the question is... how to create a table below with this values on a same page.
Thanks!
I'm a newb in php so, you'll have to forgive me for such a simple question i guess.
I need to form out a table from the values, users enter in textareas.
For example
Code:
<td><input type="textarea" name="room" id="room" style="width: 25px"></td>
<td><select id="city" name="city" style="width: 50px; border: 1px solid black;">
<option value="" selected>
<?
$q = mysql_query('SELECT * FROM city ORDER BY name');
for ($i=0; $i<mysql_num_rows($q); $i++)
print '<option value="'.mysql_result($q,$i,'name').'">'.mysql_result($q,$i,'name');
?>
</select>
Code:
$sql_query = "INSERT INTO dogovora (roomb, city...) VALUES ( ";
Thanks!
Comment