Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/crosstraining/reservation/dev/
Upload File :
Current File : /home/x/b/o/xbodynamge/crosstraining/reservation/dev/auth.php

<?php
include_once('./inc/init.inc.php');

$sql = "SELECT id, count(*) as auth_status from reservation_client where email ='".$_POST['email']."' and mdp='".$_POST['mdp']."'"; 
$req = mysql_query($sql) or die('Erreur SQL !'.mysql_error()); 
$data = mysql_fetch_assoc($req);


if ($data['auth_status']==1){ 
   $_SESSION['id_client']=$data['id'];
   header('Location: reservation.php');
} 
else{
  header('Location: index.php?error=1'); 
}


mysql_close(); 
?>