Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $dbServername = "localhost:8080";
- $dbUsername = "root";
- $dbPassword = "";
- $dbName = "tickets";
- $conn = mysqli_connect($dbServername, $dbUsername, $dbPassword,
- $dbName);
- <?php
- include_once 'dbh.php';
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <?php
- $sql = "SELECT * FROM movie WHERE movie='hunter killer';";
- $result = mysqli_query($conn, $sql);
- $resultCheck = mysqli_num_rows($result);
- if ($resultCheck > 0) {
- while ( $row = mysqli_fetch_assoc($result)) {
- echo $row['movie'] . "<br>";
- }
- }
- ?>
- </body>
- </html>
- i want my specific query to show, also my table in phpmyadmin is called movie and a variable is also called movie . my other programs have worked before but im not sure if this is affecting it .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement