Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ShoppingCartMySQL {
- protected $db;
- public function __construct ( )
- {
- try {
- $this->db = new PDO(
- '---',
- '---',
- '---'
- );
- echo 'Connected to database';
- }
- catch(PDOException $e) {
- echo 'Connection to database failed. Database reports: ' . '<br>' . $e->getMessage();
- }
- }
- ?>
Add Comment
Please, Sign In to add comment