Create Dynamically table at runtime & save it in database
- by user1548245
I have written a code for creating table. It displays table structure on GUI form,
but what I want is, when I enter values into table it should be stored in database table too.
My code:
<?php
function display($column,$rows)
{
echo "<table border='1' align='center'>";
for ($iii = 0;$iii <$_POST['column'];$iii++)
{
echo "<tr>".$jjj."</tr>"; //display no. of <tr>
for ($jjj = 0; $jjj <$_POST['rows'];$jjj++) {
echo "<td>" ."<input type=\"text\" name='$iii'>"."</td>"; }
}
echo "</table>";
}
?>