SHARE
TWEET

Untitled

a guest Dec 31st, 2018 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  $con = "mysql:dbname=controleprodutos;host:127.0.0.1";
  3.  
  4.  $dbuser = "root";
  5.  $dbpass = "";
  6.  
  7.  try {
  8.     $pdo = new PDO($con, $dbuser, $dbpass);
  9.     //echo "conex√£o realizada com sucesso";
  10.  }catch(PDOException $e){
  11.     echo "Falhou: ".$e->getMessage();
  12.  }
  13. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top