Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: Piotr
- * Date: 7/26/2017
- * Time: 4:17 PM
- */
- $db_usr = '';
- $db_nm = '';
- $db_usr_pass = '';
- $lhost = '';
- try{
- $conn = new PDO("mysql:host={$lhost};dbname={$db_nm}", $db_usr, $db_usr_pass);
- $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }catch(PDOException $e){
- echo $e->getMessage();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement