sorry about this - sounds simple but I can't find out what I'm doing wrong.
I've been trying to produce a csv file from a Mysql output using code which writes the output to a variable, then produces the file (not original code from me). The line to create the variable is
$invdte = date ("dmY",$i['invoice_date']);
$accno = $i['account_no_c'];
$invno = $i['number'];
$billorg = $i['billing_org_c'];
$totamt = $i['total_amount'];
$vatamt = $i['tax_amount'];
$subamt = $i['subtotal_amount'];
$cur = 'EUR';
$content.=
$control.','.$invdte.',VE,'.$accno.',"Facture No '.$invno.' '.$billorg.'","'.$invno.'",'.$totamt.',D,'.$invdte.','.$cur.' \n ';
& I thought using \n would give me a line return. The file is created in
$FileName = "invoice.csv";
$FileHandle = fopen($FileName, 'w') or die("can't open file");
fwrite($FileHandle, $content);
fclose($FileHandle);
The problem is that the \n is just read as another column & printed to the file.
Can anyone tell me what I've done wrong? Thanks