Skip to content
Snippets Groups Projects
Commit 108f8bbd authored by Brett Bieber's avatar Brett Bieber
Browse files

Remove the line limit so all the data can be imported.

parent 54c00432
Branches
Tags
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* then import the sql file * then import the sql file
*/ */
$handle = fopen("all_wellness_documents.csv", "r"); $handle = fopen("all_wellness_documents.csv", "r");
$columns = fgetcsv($handle, 1000, ","); $columns = fgetcsv($handle, 0, ",");
array_shift($columns); // Take off URL array_shift($columns); // Take off URL
array_shift($columns); // Take off Title array_shift($columns); // Take off Title
...@@ -19,7 +19,7 @@ foreach ($columns as $id=>$col) { ...@@ -19,7 +19,7 @@ foreach ($columns as $id=>$col) {
} }
$article_id = 0; $article_id = 0;
while (($art_cat = fgetcsv($handle, 1000, ",")) !== FALSE) { while (($art_cat = fgetcsv($handle, 0, ",")) !== FALSE) {
$article_id++; $article_id++;
$url = str_replace('"', '', trim(array_shift($art_cat))); $url = str_replace('"', '', trim(array_shift($art_cat)));
$title = str_replace('"', '', trim(array_shift($art_cat))); $title = str_replace('"', '', trim(array_shift($art_cat)));
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment