Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include("game.php");
- $enemy=$_GET["enemy"];
- $url=$_SERVER["GET_URI"];
- $sql="UPDATE users SET action='$url' WHERE user='$user'";
- $result=mysql_query($sql);
- ?>
- Battle!
- <br>
- <?php
- if (enemy($enemy)==0)
- {
- $desc=get_stat("description");
- $desc="<a href=win.php?enemy=".$enemy."&url=Dino.php>Continue</a><br>".$desc;
- set_stat("description",$desc);
- //header("location:"."win.php?enemy=".$enemy."&url=Dino.php");
- }
- else
- {
- echo '
- <br>
- <a href="attack.php?url=Dino_battle.php&enemy='.$enemy.'">Attack</a>
- <br>
- <a href="end_action.php?url=Dino.php">Run Away</a>';
- $user_id=get_user_id($_SESSION['user']);
- $sql="SELECT * FROM skills WHERE id=$user_id";
- $result=mysql_query($sql);
- echo "<table border=1>";
- while($row=mysql_fetch_array($result))
- {
- $k=$row['skill'];
- $s="SELECT * FROM abilities WHERE id=$k";
- $r=mysql_query($s);
- while($row=mysql_fetch_array($r))
- {
- $str="<a href='attack.php?url=Dino_battle.php&enemy=".$enemy."&skill=".$k."'>".$row['name']."</a>";
- if (get_stat("mana")<$row['mana'])
- {
- $str=$row['name'];
- }
- echo "<tr><td>".$str."</td><td><img src='".$row['sprite']."'/></td></tr>";
- }
- }
- echo "</table>";
- }
- echo "
- <table border=1><tr><td>"
- .get_stat("description").
- "</td></tr></table>";
- ?>
- ---------------------------------------------------------
- Gives this error,
- Notice: Undefined index: GET_URI in C:\HostingSpaces\arcorian\arcoria.net\wwwroot\Dino_battle.php on line 5
- Battle!
Add Comment
Please, Sign In to add comment