par
dunbar » 09 août 2006, 23:24
$date1 = $date1['date_realisation'];
$date2 = $date2['date_encodage'];
$user = $_POST['user'];
$ref = $_POST['ref'];
$adr = $_POST['adr'];
$code = $_POST['postal'];
$localite = $_POST['loca'];
$address_mac = $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] ;
$tech = $_POST['technicien'];
$heure_debut = $_POST['ha1'].":".$_POST['ha2'];
$heure_fin = $_POST['hd1'].":".$_POST['hd2'];
$commentaire = $_POST['com'];
echo '<pre>';
var_dump($_POST);
echo '</pre>';
var_dump($commentaire);
var_dump($heure_fin);
var_dump($heure_debut);
var_dump($tech);
var_dump($address_mac);
var_dump($localite);
var_dump($code);
var_dump($adr);
var_dump($ref);
var_dump($date2);
var_dump($date1);
/*************************************************
Date
*************************************************/
/*************************************************
Insertion dans la base
*************************************************/
$sql="INSERT INTO prestation_beta (date_realisation, date_encodage, nom_utilisateur, ref_client,
adr_client, code_postal, commune, adr_modem, technicien,
heure_debut, heure_fin, commentaire)
values ('".$date1."', '".$date2."', '".$user."', '".$ref."', '".$adr."', '".$code."',
'".$localite."', '". $address_mac."', '".$tech."', '".$heure_debut."',
'".$heure_fin."', '".$commentaire."')";
$insert = mysql_query($sql) or die (mysql_error());
Voici mon fichier refait mais cela ne change toujours pas j'ai bien une insertion dans ma TABLE mais aucune données mes champs date
c'est 0000.00.00 et les autre soit vide ou ARRAY
Je comprend rien
[php]$date1 = $date1['date_realisation'];
$date2 = $date2['date_encodage'];
$user = $_POST['user'];
$ref = $_POST['ref'];
$adr = $_POST['adr'];
$code = $_POST['postal'];
$localite = $_POST['loca'];
$address_mac = $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] .":". $_POST['mac'] ;
$tech = $_POST['technicien'];
$heure_debut = $_POST['ha1'].":".$_POST['ha2'];
$heure_fin = $_POST['hd1'].":".$_POST['hd2'];
$commentaire = $_POST['com'];
echo '<pre>';
var_dump($_POST);
echo '</pre>';
var_dump($commentaire);
var_dump($heure_fin);
var_dump($heure_debut);
var_dump($tech);
var_dump($address_mac);
var_dump($localite);
var_dump($code);
var_dump($adr);
var_dump($ref);
var_dump($date2);
var_dump($date1);
/*************************************************
Date
*************************************************/
/*************************************************
Insertion dans la base
*************************************************/
$sql="INSERT INTO prestation_beta (date_realisation, date_encodage, nom_utilisateur, ref_client,
adr_client, code_postal, commune, adr_modem, technicien,
heure_debut, heure_fin, commentaire)
values ('".$date1."', '".$date2."', '".$user."', '".$ref."', '".$adr."', '".$code."',
'".$localite."', '". $address_mac."', '".$tech."', '".$heure_debut."',
'".$heure_fin."', '".$commentaire."')";
$insert = mysql_query($sql) or die (mysql_error());[/php]
Voici mon fichier refait mais cela ne change toujours pas j'ai bien une insertion dans ma TABLE mais aucune données mes champs date
c'est 0000.00.00 et les autre soit vide ou ARRAY
Je comprend rien