1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| mysql_select_db("mgp");
$a=mysql_query("select * from total");
while($b=mysql_fetch_array($a))
{
$adresse=$b['Adresse 1'].' '.$b['Adresse 2'].' '
.$b['Adresse 3'];
$code_postal=$b['Code Postal'];
$ville=$b['Ville'];
$email=$b['general E-mail'];
$site=$b['Site Web'];
$fichier=$b['Origine'];
$contact=$b['Contact'];
$commercial=$b['Commercial'];
$statut_com=$b['Statut'];
$dpt=$b['Dep'];
mysql_query("insert into clients values
('','$contact','$adresse','$ville',
'','$dpt','','','$commercial','','',
'$code_postal','$email','','',
'$site','$fichier','','$statut_com','','','','')")
or die(mysql_error());
}; |
Partager