Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <link rel="stylesheet" href="StylesTSL.css" type="text/css" media="screen">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Terraria Server List</title>
- </head>
- <body>
- <div id="page">
- <div id="logobase">
- <div class="filler"></div>
- <center><img src="logo.png" width="400" height="100"/></center>
- </div>
- <div class="filler"></div>
- <?php
- $page = $_GET['page'];
- addslashes($page);
- $conn = mysql_connect("localhost","user","pass");
- if (!$conn)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("db", $conn);
- mysql_real_escape_string($page,$conn);
- $result = mysql_query("SELECT * FROM Servers WHERE id = '$page' LIMIT 1");
- $result2 = mysql_fetch_assoc($result);
- ?>
- <div class="servbox">
- <center>
- <h1><?php echo $result2['title'] ?></h1><br />
- <h2><span class="ip"><?php echo $result2['ip'] ?></span></h2><br /><hr /></center>
- <p><?php echo $result2['desc'] ?></p><br /><br />
- This is a <?php echo $result2['type'] ?> server.<br />
- Not what your looking for? <a href="http://bobcraft-games.com/TSL/">Return to our home page.</a>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement