Advertisement
Guest User

Untitled

a guest
Feb 10th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $user = "root";
  2. $pass = "";
  3.  
  4. try{
  5. $conn = new PDO("mysql:host=localhost;dbname=project3", $user, $pass);
  6. }catch(PDOException $e){
  7. echo "u fucked up: " . $e;
  8. }
  9.  
  10. $selectQuery = $conn->prepare("SELECT * FROM bestand");
  11. $selectQuery->execute();
  12. $bestand = $selectQuery->fetchAll();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement