forked from halo-battle/game
Version 0.7
This commit is contained in:
parent
e0f55450e1
commit
c117da6d77
148 changed files with 1914 additions and 801 deletions
|
|
@ -7,8 +7,8 @@ $pos=$_SESSION['pos'];
|
|||
|
||||
require('../connectBDD.php');
|
||||
|
||||
if (isset($_POST['nouveaunom']) && $_POST['nouveaunom']!='') {
|
||||
$_POST['nouveaunom'] = htmlentities($_POST['nouveaunom']);
|
||||
if (isset($_POST['nouveaunom']) && trim($_POST['nouveaunom']) != '') {
|
||||
$_POST['nouveaunom'] = htmlentities(mysql_real_escape_string($_POST['nouveaunom']));
|
||||
mysql_query("UPDATE planete SET nom_planete='".$_POST['nouveaunom']."' WHERE id_user='$id' AND galaxie='$galaxy' AND position='$pos' AND ss='$ss'") or die ("erreur sql ".mysql_error());
|
||||
header("Location: depart.php");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue