Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*define('HOST','127.0.0.1');
- define('USUARIO','root');
- define('SENHA','1234');
- define('DB','login');
- $conexao = mysqli_connect(HOST,USUARIO,SENHA,DB) or die ('Não foi possível conectar');
- */
- $username = 'root';
- $password = '1234';
- try{
- $dbh = new PDO("mysql:host=localhost1;dbname=login",$username,$password);
- }catch(PDOException $er){
- echo $er -> getMessage();
- //var_dump($er);
- }
- ?>
Add Comment
Please, Sign In to add comment