Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="background3.css" />
- <link rel="stylesheet" type="text/css" href="navmenu.css" />
- </head>
- <body>
- <?php
- include("user_cookie.php");
- include("connect.php");
- include("check.php");
- include("navmenu.php");
- include("herostats.php");
- echo <<<CODE1
- <fieldset style="background-image:url(background.jpg); color:white;">
- <legend>
- Arena
- </legend>
- CODE1;
- $result = mysql_query("SELECT * FROM Heroes WHERE (Health>=MaxHealth*.02 AND UserID!=$fb_id) ORDER BY RAND() LIMIT 10");
- while($row = mysql_fetch_array($result))
- {
- echo $row['Heroname'] . " (Level " . $row['Level'] . " " . $row['Herotype'] . ") ";
- echo <<<CODE
- <form method="post" action="battle.php">
- <input type="hidden" name="enemyID" value="
- CODE;
- echo $row['UserID'];
- echo <<<FIGHT
- ">
- <input type="submit" value="Duel!">
- </form>
- FIGHT;
- }
- mysql_close($con);
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment