diff --git a/ProjetProgWeb/index.php b/ProjetProgWeb/index.php index 55c612e..f5e16bf 100644 --- a/ProjetProgWeb/index.php +++ b/ProjetProgWeb/index.php @@ -1,23 +1,3 @@ ---------------- " . $row . " -----------------

\n"; - if ($row > 1) { - for ($c = 0 ; $c < $num ; $c++) { - $new_these->insertField($data[$c], $c); - } - $dump = new dump($new_these); - $dump->sendThese(); - } $row++; - } - fclose($handle); -} +echo "Welcome"; \ No newline at end of file diff --git a/ProjetProgWeb/scripts/extract.php b/ProjetProgWeb/scripts/extract.php new file mode 100644 index 0000000..eb4b98d --- /dev/null +++ b/ProjetProgWeb/scripts/extract.php @@ -0,0 +1,23 @@ + 1) { + for ($c = 0 ; $c < $num ; $c++) { + $new_these->insertField($data[$c], $c); + } + $dump = new dump($new_these); + $dump->sendThese(); + } $row++; + } + fclose($handle); + echo "CSV file imported into DB."; +}