PDO connection file. How to use? [closed]

-5

I have a PDO connection file. To include this connection in the other files of the system in order to make the requests in the database, I will use this ????

<?php require('conexao.php'); ?>
    
asked by anonymous 29.09.2014 / 14:43

1 answer

3

Well, your doubt was 'half' vague for me, I mean, it's just not to say it completely, but anyway ...

The PDO file that you should be referring to works as a classe , it is usually created a separate file and make only require_once for convenience, but of course, if in all interaction with the bank, you you want to open a conexão with the bank manually, you only put in your code without making references

Here in the company we use 3 classes to connect to a bank ...

pdo.php

29.09.2014 / 15:01