What a PHP class would look like to do a database search with PDO

Asked

Viewed 33 times

1

I’m trying to do mine framework, I’ve already managed to create a class called Model, within it has a function called getDataBaseConnection() and now how do I do it? I can’t create another function to get information from Database, remembering that I’m doing with PDO.

  • If your question is not the same as indicated, it would be legal [Edit] and add the specific parts of your problem that are not in the link above (if applicable, after editing leave a comment, which I re-read).

  • 1

    Here is another example in the answers http://answall.com/questions/67465/pdo-conex%C3%a3o-com-banco and here is more information http://answall.com/search?q=php+pdo

  • 1

    Welcome to Stack Overflow, your question seems a little broad, cite your specific problem and part of the code. When I started at php I also made a library for PDO: https://github.com/Leonardo-Souza/MinPDO but it’s been a while since I’ve made commits and she’s having trouble at WHERE

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.