Create mysql table with php variable not working

后端 未结 4 1009
生来不讨喜
生来不讨喜 2020-12-07 06:28

I\'m pretty new to php.. and this is probably a stupid mistake... but I have no idea what is going on. I\'m trying to create a table in my database using php. I want to name

4条回答
  •  感情败类
    2020-12-07 07:18

    Use a heredoc:

    $create = <<

    Notably, you can use string interpolation in a heredoc, but you should really tend toward parametrized queries.

提交回复
热议问题