Posts by Bruno Henrique • 9 points
2 posts
-
-3
votes1
answer503
viewsA: Read exact csv php columns
Try to assign to a variable the column index, then it is independent the positioning of the same... Example: $fieldnames = fgetcsv($handle, 1000, ','); $idx_dado_5 = array_search("dado_5",…
-
1
votes0
answers64
viewsQ: Value duplication when importing file . csv when one or more column(s) is missing from the file
When I import a . csv file to save to the database and the file is missing the name of some column instead of inserting null in the bank it repeats the value of the first column. Following example;…