I have randomly generated questions and decided to put those in a temporary table. Now, it is already in my html table:
echo "<form action=# method=post>";
echo "<table>";
do{
echo "<tr>";
echo "<td>"."<input type=text value='$rows[question]' name=question>"."</td>;
echo "<td>"."<input type=text value='$rows[correct]' name=correct>"."</td>;
}while($rows=mysqli_fetch_array($rs));
echo "</table>";
echo "<input type=submit name=insert>";
echo "</form>";
?>
</body>
</html>
What I want to happen is, when I hit the insert button name="insert", data from that table, [from row 1 till the last row] will be inserted to my database "tbl_randomq". Is it possible to insert multiple row data simultaneously to database with just 1 click.
I've tried to use while loop, but it only inserts repeated(10times) data coming from the last row. Help with this please :-)