I do this thing:

$sql = mysql_query("INSERT INTO `battle` (img,name,level,life,atk,def,type,username) SELECT img,name,level,life,atk,def,type,username FROM `enemy` ORDER BY RAND() LIMIT 1")or die(mysql_error()); 

Here, and when we update the page a new entry is added. How to remove it?

  • Delete the code that you wrote here, and nothing will not be added anywhere :))))) And, if without jokes, updating and simply following the link to the page for the server side is almost the same thing. - KiTE
  • So how to do it? - k0mar

1 answer 1

Set a condition to resubmit the form.
And if it is not a form, it is difficult because it is not clear what you write there and why.
Describe in more detail.