Reputation: 1271
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.
Upvotes: 0
Views: 1333
Reputation: 6919
Correct me if I am wrong, but for CREATE, shouldn't you be using exec, not query?
Upvotes: 3