Params in Custom Query

Hi,
When I try to use Parameters into custom query it does not work.
This not working:
CREATE TABLE :P1
Even changing with “?” not working:
CREATE TABLE ?
After debug i get:

  1. message: “SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘? (\n\tid INT(10) UNSIGNED,\n \tcliente_id INT(10) UNSIGNED,\n \ttaller_nombre VA…’ at line 1”
    I think is that this param :P1 or “?” that is not passing into query.
    The expression that suppose to be replace with param is {{$_POST.nombre_taller_post}}, this came from a form with a input name “nombre_taller_post”, but the error comes when submit.

Community Page
Last updated: