here is my code. I really want to echo a specific cell from my CSV file without any MySQL stuff..
if (($handle = fopen("ebbe.csv", "r")) !== FALSE) {
# Set the parent multidimensional array key to 0.
$nn = 0;
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
# Count the total keys in the row.
$c = count($data);
# Populate the multidimensional array.
for ($x=0;$x<$c;$x++)
{
$csvarray[$nn][$x] = $data[$x];
//echo $data[$x] . '<br>';
}
$nn++;
}
fclose($handle);
}
The data is in the $csvarray multidimensional array, but i can't write out a specific one. I tried this, but it said undefined offset on 2.
echo $csvarray[1][2];
Please help me! (yes, im a php noob :( )