Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "51.255.192.110";
- $username = "jghkfyaejoizg";
- $password = "LNxmcVEs9NiI5wcs";
- $dbName = "juke";
- //Make Connection
- $conn = new mysqli($servername, $username, $password, $dbName);
- //Check Connection
- if(!$conn){
- die("Connection Failed". mysqli_connect_error());
- }
- $sql = "SELECT id, name, price FROM level";
- $result = mysqli_query($conn ,$sql);
- if(mysqli_num_rows($result) > 0){
- while($row = mysqli_fetch_assoc($result)){
- echo "ID: ".$row['id'] . "Name: ".$row['name'] ."Price: ".$row['price'] . "<br>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement