Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Connect to a MySQL database using driver invocation */
- $dsn = 'mysql:dbname=Paintball;host=127.0.0.1';
- $user = 'root';
- $password = '161294HaHa';
- try {
- $dbh = new PDO($dsn, $user, $password);
- } catch (PDOException $e) {
- echo 'Connection failed: ' . $e->getMessage();
- }
- $mysqli = $pdo->prepare('SELECT * FROM Paintball_Stats');
- $result = mysqli_query($mysqli,$sql);
- while($row = mysqli_fetch_assoc($result))
- {
- echo "hej";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement