Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = "127.0.0.1";
- $user = "username";
- $pass = "password";
- $conn = mysqli_connect("$url","$user","$pass","space");
- ?>
- <html>
- <head>
- <?
- include 'db.php';
- ?>
- <!-- Header stuff -->
- </head>
- <body>
- <!-- Body stuff -->
- <?php
- $spaceSelect = mysqli_query($conn, "SELECT * FROM `world`");
- $i = 1;
- while($space = mysqli_fetch_array($spaceSelect)){
- echo "<button id='sector' data-toggle='modal' data-target='#".$space['id']."Modal'>".$space['id']."</button>";
- $i += 1;
- if($i % 10 == 1){
- echo "<br>";
- };
- echo "stuff";
- };
- ?>
- </body>
- </html>
- Notice: Undefined variable: conn in S:sharedspaceindex.php on line 30
- <html>
- <head>
- <?
- ?>
- <!-- Header stuff -->
- </head>
- <body>
- <!-- Body stuff -->
- <?php
- include 'db.php';
- $spaceSelect = mysqli_query($conn, "SELECT * FROM `world`");
- $i = 1;
- while($space = mysqli_fetch_array($spaceSelect)){
- echo "<button id='sector' data-toggle='modal' data-target='#".$space['id']."Modal'>".$space['id']."</button>";
- $i += 1;
- if($i % 10 == 1){
- echo "<br>";
- };
- echo "stuff";
- };
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement