forked from halo-battle/game
Version 2007-10-27
This commit is contained in:
parent
b8e951f59d
commit
4909921671
98 changed files with 6096 additions and 2268 deletions
17
pages/nom.php
Normal file
17
pages/nom.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
session_start();
|
||||
$id=$_SESSION['id'];
|
||||
$galaxy=$_SESSION['galaxy'];
|
||||
$ss=$_SESSION['ss'];
|
||||
$pos=$_SESSION['pos'];
|
||||
|
||||
require('../connectBDD.php');
|
||||
|
||||
if (isset($_POST['nouveaunom']) && $_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");
|
||||
}
|
||||
else header("Location: depart.php");
|
||||
|
||||
mysql_close();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue