Cannot insert data into a table

No, a prepared statement is where you use replaceable parameters in the query, call the prepare() method, and then call the execute() method with values for those parameters.

Have a look at the code being discussed in this thread and you’ll see the idea: Use a checkbox to update a mysql table - #16 by droopsnoot

Prepared statements get around a lot of issues such as properly quoting values inside queries.

1 Like