executing code from database

前端 未结 8 550
逝去的感伤
逝去的感伤 2021-01-29 14:42

I have a PHP code stored in the database, I need to execute it when retrieved.

But my code is a mix of HTML and PHP, mainly used in echo \"\";

A sample that look

8条回答
  •  梦如初夏
    2021-01-29 15:21

    I have a PHP code stored in the database

    STOP now.
    Move the code out of the database.
    And never mix your code with data again.

提交回复
热议问题