I was try this by using this code. used the while loop but there is no solutions.
$counter= 0;
$result= $cid->query("SELECT ComName FROM catcom");
echo $count=$result->num_rows;
while ($row= $result->fetch_assoc()) {
$field_value[] = $row;
$counter++;
}
Array store the name of the field $field_value[] is it possible to store data to data base, like this code if possible to how to write syntax.
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$import="INSERT into $field_value[] values('$data[0]','$data[1]','$data[2]','$data[3]','$data[4]')";