Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Stellt die Datenbankverbindung her
- /*** mysql hostname ***/
- $hostname = 'localhost';
- /*** mysql username ***/
- $username = 'user';
- /*** mysql password ***/
- $password = 'pw';
- /*** mysql db-name ***/
- $dbname = 'dbname';
- try {
- $dbh = new PDO("mysql:host=$hostname;dbname=$dbname", $username, $password);
- }
- catch(PDOException $e)
- {
- echo $e->getMessage();
- }
- ?>
Add Comment
Please, Sign In to add comment