If you use PDO::exec, you can get it directly. Now to prevent injection, use PDO::prepare. I don’t know how to get it
PDO::exec
PDO::prepare
认证高级PHP讲师
Here it is
Here it is