while ($row = mysql_fetch_row($res)) {
$row[8] = str_replace("\n", "", $row[8]);
$row[9] = str_replace("\n", "", $row[9]);
$row[19] = str_replace("\n", "", $row[19]);
// check to see if a comma exists in the field
// $variable = str_replace("\,", "", $row);
fwrite($fp, join($delim, $row) . "\n");
}
I tried this, and it still isn't working. I also tried using \n. Can this not be done? Do I need to write each field individually?
Thanks!