Hi
my code is
while (($data = fgetcsv($handle, 1000, ",",'"')) !== FALSE) {
if( count($data) > 5 ){
//print_r($data);
$error = 'Yes' ; ///////////set the error flag to yes and break the loop . validation failed
$errorMess = '[COLOR="Yellow"]somet thing here[/COLOR]' ;
break ;
}
///////////////insert the data into stagging table if the column ==5///////////////////
//print_r($data);
$sqlLoad = "INSERT INTO ratecodes_stagging ( package_name,package_table,plan_name,plan_code,package_hierachy )
VALUES ('".addslashes($data[0])."','".addslashes($data[1])."','".addslashes($data[2])."','".addslashes($data[3])."',
'".addslashes($data[4])."')";
$resultSqlLoad = es_query($sqlLoad);
$i++;
//echo $i."<br>";
}//END while fgetcsv
I want to display which row has more columns. How do i get the number of the row which is more then 5 column