Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user = "root";
- $pass = "";
- try{
- $conn = new PDO("mysql:host=localhost;dbname=project3", $user, $pass);
- }catch(PDOException $e){
- echo "u fucked up: " . $e;
- }
- $selectQuery = $conn->prepare("SELECT * FROM bestand");
- $selectQuery->execute();
- $bestand = $selectQuery->fetchAll();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement