Posts by Marcelo Pontes • 1 point
2 posts
-
0
votes1
answer37
viewsA: Mysql connection within a class
I was able to solve the problem. The PDO class was not being located, to use namespace I need to insert a slider backwards before setting PDO. Ex: $dados->fetch(\PDO::FETCH_OBJ);…
-
-1
votes1
answer37
viewsQ: Mysql connection within a class
Hello, I’m having a hard time making a connection to the database. To make the connection I created a class called Conexao and I am using PDO, when I need to make a select, for example, I call the…