forked from halo-battle/game
First code received by Master Leon
This commit is contained in:
commit
4230eb6922
330 changed files with 15543 additions and 0 deletions
22
page/change_planete.php
Normal file
22
page/change_planete.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?
|
||||
session_start();
|
||||
|
||||
$id=$_SESSION['id'];
|
||||
mysql_connect("leon.redby.fr", "leon0", "7268032");
|
||||
mysql_select_db("leon0");
|
||||
$appel = mysql_query("SELECT galaxy, ss, pos FROM user WHERE id='".$id."' AND nb='".$_POST['planete']."'");
|
||||
$data=mysql_fetch_assoc($appel);
|
||||
|
||||
|
||||
|
||||
$_SESSION['galaxy'] = $data['galaxy'];
|
||||
$_SESSION['ss'] = $data['ss'];
|
||||
$_SESSION['pos'] = $data['pos'];
|
||||
|
||||
|
||||
|
||||
@header("Location: depart.php");
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue