Click here to Skip to main content
16,022,060 members

Comments by Member 15044276 (Top 2 by date)

Member 15044276 6-Sep-24 10:10am View    
// Process CSV file
if (($handle = fopen($csvFile, 'r')) !== false) {
// Skip the header
fgetcsv($handle, 1000, ',');

while (($data = fgetcsv($handle, 1000, ',')) !== false) {
if (count($data) < 9) {
echo "Skipping invalid row: ";
print_r($data);
echo "";
continue;
}
do you mean i need to use a loop inside my function? in this case i'm wondering why actually (without the new BOOL "IsValid") the code is working perfectly, updating/adding all the records
Member 15044276 12-Jan-21 14:28pm View    
no i didn't because i'm one step before. i don't even know what command to issue to destroy a particle `particle.Destroy(something like that)`