I'm interested to know, what would be the best way to go about inserting 150+ values (values being the data collected by the form, e.g name, age, etc.) into a database with prep'd statements.
The perimeters are thus:
1 form which inputs all values to the table on submit, not all parts of the form might be filled by the user so there needs to be the ability to submit the form regardless of if there has been input (sans required data).
Using the following basic INSERT query with a prep'd statement as an example
$stmt = $conn->prepare("INSERT INTO MyGuests (firstname, lastname, email) VALUES (?, ?, ?)");$stmt->bind_param("sss", $firstname, $lastname, $email);
would you have to manually input all 150+ data type wassnames, the "sss",
part of the bind, individually or is there another, quicker way to do this?