Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = 'localhost';
- $db_name = 'ispit1';
- $username = 'root';
- $password = '';
- try{
- $db = new PDO('mysql:host=' .$servername.
- ';dbname=' .$db_name. ';charset=utf8', $username, $password);
- } catch (Exception $e){
- echo $e->getMessage();
- }
- ?>
Add Comment
Please, Sign In to add comment