PHP PDO creating tables
When I use some basic query, like SELECT * FROM users
开发者_高级运维PDO::query() works and it returns
object(PDOStatement)#3 (1) { ["queryString"]=> string(19) "SELECT * FROM users" }
and I can continue using this, but when I use query to create table the return of the function is bool(false).The query is valid and its executed correct, but the result is .. false.
Correct me if I am wrong, but for CREATE, shouldn't you be using exec, not query?
精彩评论