Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //FUNCAO DE CONEXAO
- function conecta(){
- try{
- $conn = new PDO('mysql:host=localhost;dbname=restaurante', 'bruno', 'bruno');
- return $conn;
- }catch(PDOException $erro){
- echo $erro->getMessage();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement