Bonjour,
Je croyais qu'en revenant au bonnes vielles bases ce serai plus simple,
mais...
Un bout de code qui parait tout simple mais qui ne veut pas fonctionner, quelqu'un peut il me dire pourquoi ???
<?php session_start();
if (isset($_POST['immat']) OR isset($_POST['identific']))
{
$immat=$_POST['immat'];
$identific=$_POST['identific'];
$inter=$_POST['inter'];
}
// on se connecte à MySQL
mysql_pconnect("localhost", "root", "") ;
mysql_select_db("vehicule") ;
$req = mysql_query (" SELECT id, immat INTO identification WHERE immat=$immat OR identif=$identific ") ;
while($data = mysql_fetch_array($req))
{
$id = $data['id'];
$immatb = $data['immat'];
}
$_SESSION['id'] = $id;
$_SESSION['immat'] = $immatb;
$_SESSION['identific'] = $identific ;
$_SESSION['inter'] = $inter ;
header('Location:kms.php');
?>