I do this thing:
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()); But what's the use? When the page is updated, the infa is entered again, how can you do it so that only when you press the key, the infa will be entered? For example: 1. There is a Fight key on the screen 2. In cases if we want to fight, we poke at it and take the enemy out of us 3. But the page is constantly updated and this is constantly entered into info!
How to make that only when you press the key was recorded infa? If you can tell me in detail Thanks in advance