sergeda Posted June 15, 2014 Share Posted June 15, 2014 Hello. I'm trying to create tables in my module this way: foreach ($sql AS $query){ if (!Db::getInstance()->Execute(trim($query))) return false; } And everything went fine but when I look in the database there are no new tables If I paste the same SQL into MySql console it addes tables without problem. It seems like Execute doesn't return correct result of it's execution. Link to comment Share on other sites More sharing options...
sergeda Posted June 15, 2014 Author Share Posted June 15, 2014 Well. It seems I can't get it to create tables at all. I've tried "execute" with small e, tried "query" insted -no way. Can somebody help me with it? It was working fine in 1.4. I see class DB was rewritten to use PDO. And now I can't use it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now