I have quick job.
I will provide you a list of database columns.
I have a form with the same columns that a user will submit.
I need you to create php code that will:
1. Dynamically loop through _POST object
create a dynamic mysql insert statement to insert all values into database in a single query insert statement.
Could quick things:
1. A form value could be blank. Please strip any characters that could cause sql error like apostrophe, etc.
2. Please include connection error checking and display error message if you canot connect to database.
Posted On: April 20, 2022 01:56 UTC
Category: Back-End Development
Country: United States
click to apply