Hi I am new to php. I am working on a form which creates a dynamic table when the page it opened the problem is that the table consist of the input text boxes which I don't have an idea to save it into my database I know the basic insert query but this one is a tricky part can anyone help me out here is my code
<table border='0px'>
<?php
$c = 1;
$scomp = mysql_query("SELECT * FROM subject WHERE compulsory!='$c'")or die(mysql_error());
$v =0;
while($fsub = mysql_fetch_array($scomp)){
$ycode = $fsub["code"];
echo "<tr>";
echo "<td width='200px'><font color='#FF6600'><strong>$fsub[name]</strong></td><td><input name='s_$ycode' type='text' size='1' maxlength='2'></td>";
echo "</tr>";
$v++;
}
echo "<input id='hh' name='hh' type='text' value= '$v'/>";
?>
</table>