Guest User

Untitled

a guest
Apr 16th, 2016
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. $user="*****"; // MySQL Username
  3. $pass="*****"; // MySQL Password
  4. try {
  5. $dbh = new PDO('mysql:host=localhost;dbname=csgobetw_sp', $user, $pass); // MySQL Database
  6. // foreach($dbh->query('SELECT * from game1') as $row) {
  7. // print_r($row);
  8. // }
  9. //$dbh = null;
  10. } catch (PDOException $e) {
  11. print "Error!: " . $e->getMessage() . "<br/>";
  12. die();
  13. }
  14. ?>
Add Comment
Please, Sign In to add comment