Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $DB_HOST = 'localhost';
- $DB_USER = 'test';
- $DB_PASS = "test";
- $DB_NAME = 'test';
- try {
- $DB_CON = new PDO('mysql:host='.$DB_HOST.';dbname='.$DB_NAME,$DB_USER,$DB_PASS);
- $DB_CON->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- } catch (PDOException $ex){
- echo $ex->getMessage();
- }
- include_once 'CRUD.php';
- include_once 'error.php';
- $crud = new CRUD($DB_CON);
- $error = new ERRORS();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement