Guest User

Untitled

a guest
May 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4.  
  5. <link rel="stylesheet" type="text/css" href="background3.css" />
  6. <link rel="stylesheet" type="text/css" href="navmenu.css" />
  7.  
  8. </head>
  9.  
  10. <body>
  11.  
  12. <?php
  13.  
  14. include("user_cookie.php");
  15. include("connect.php");
  16. include("check.php");
  17. include("navmenu.php");
  18. include("herostats.php");
  19.  
  20. echo <<<CODE1
  21. <fieldset style="background-image:url(background.jpg); color:white;">
  22. <legend>
  23. Arena
  24. </legend>
  25. CODE1;
  26.  
  27. $result = mysql_query("SELECT * FROM Heroes WHERE (Health>=MaxHealth*.02 AND UserID!=$fb_id) ORDER BY RAND() LIMIT 10");
  28.  
  29. while($row = mysql_fetch_array($result))
  30. {
  31. echo $row['Heroname'] . " (Level " . $row['Level'] . " " . $row['Herotype'] . ") ";
  32. echo <<<CODE
  33. <form method="post" action="battle.php">
  34. <input type="hidden" name="enemyID" value="
  35. CODE;
  36. echo $row['UserID'];
  37. echo <<<FIGHT
  38. ">
  39. <input type="submit" value="Duel!">
  40. </form>
  41. FIGHT;
  42. }
  43.  
  44. mysql_close($con);
  45.  
  46. ?>
  47.  
  48. </body>
  49. </html>
Add Comment
Please, Sign In to add comment