From a17a82ccd040d14657be0b3f011755ef67b53d0d Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 2 Apr 2006 21:00:09 +0000 Subject: [PATCH] =?UTF-8?q?task=20#4898,=20Import=20CSV=20op=C3=A9ration?= =?UTF-8?q?=20banquaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/cbc_be.inc.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/cbc_be.inc.php b/include/cbc_be.inc.php index d46555a54..b7203fd87 100644 --- a/include/cbc_be.inc.php +++ b/include/cbc_be.inc.php @@ -26,7 +26,29 @@ $row=1; while (($data = fgetcsv($handle, 2000,'!@')) !== FALSE) { $num = count($data); for ($c=0; $c < $num; $c++) { +// Parsing CSV comes here +// insert into import_tmp + $Sql="insert into import_tmp (code, + date_exec , + date_valeur, + montant, + devise, + compte_ordre, + detail, + bq_account , + jrn, + ok) + values ('$code', + '$date_exec', + '$date_exec', + $montant, + '$devise', + '".addslashes($compte_ordre)."', + '".addslashes($detail).$num_compte." ', + '$p_bq_account', + $p_jrn, + false)"; } // for ($c=0;$c<$num;$c++) $row++; } // file is read