I am currently producing a form via mysql / php. I have well over 1500 inputs with unique values and I would like to insert them into a mysql table (1 value / row)
I am creating the form this way:
echo "<input type='text' name='combination[]' value='justsometext". $row['name'] ."'><br />";
I have around 1500 inputs like this and I would like to insert them into one column, how do I go about?
I am using the following code to insert, but it is only inserting 0s instead of the actual values:
foreach ($_POST['combination'] as $combination) {
$sql="INSERT INTO alphabet_combination (combination)
VALUES
('$combination')";
}
if (!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error($con));
}