1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
// Recuperation des donnees
$req_recup_new = "SELECT * FROM tract_new " ;
$result_recup_new = mysql_query($req_recup_new) or die (" req_recup_new ratee");
while ($row = mysql_fetch_object ($result_recup_new))
{
// Creation de la nouvelle ligne 'traction'
$req_insert_pf_AFF = "INSERT INTO traction ( PF, remorque, shipment,date_traction, origine,pal) VALUE ( '$row->PF', '$row->remorque', '$row->shipment', '$date', 'affret', '$row->pal')";
$result_req_insert_pf_AFF=mysql_query($req_insert_pf_AFF) or die ('req_insert_pf_AFF invalide');
}
// Vider la table tract_new ;
$truncate = "TRUNCATE TABLE `tract_new`";
$result_truncate = mysql_query($truncate); |
Partager