Well that's because you forgot the 2
$info_area = $invoice_row["info"];
$info_area2 = ereg_replace("\n","<br>",$info_area);
$info_area2 = ereg_replace("a","A",$info_area);
On the second ereg_replace, you're replacing a with A in a variable called info_area
But prior to that, you created a new variable called info_area2, so your second ereg_replace should be replacing a with A in variable info_area2
$info_area = $invoice_row["info"];
$info_area2 = ereg_replace("\n","<br>",$info_area);
$info_area2 = ereg_replace("a","A",$info_area2);
But there's no need to create new variables, you can keep the same variable name
$info_area = $invoice_row["info"];
$info_area = ereg_replace("\n","<br>",$info_area);
$info_area = ereg_replace("a","A",$info_area);
Cgraz