salut,
quend j'entre les ligne a ajouter selement la dernier ligne qui est inserer
<?php
if(isset($_POST['text']) && !empty($_POST['text'])){
$a=explode("\n",$_POST['text']);
$nb_lignes= count($a);
for($i=0;$i<=$nb_lignes-1;$i++){
$ch=$ligne=$a[$i];
$l=explode(',',$ch);
}}
mysql_connect(******,**,****)or die('Connexion impossible : ' . mysql_error());
mysql_select_db(****)or die('error select db');
$ligne=$a[$i];
$req="INSERT INTO ****VALUES ('','$l[1]','$l[0]')";
mysql_query($req)or die('error');
mysql_close();
?>