thedaveyb
September 12th, 2008, 05:30 AM
Yo Kirupians,
I am try to split a string that comes from the database - its currently a comma i wish to replace with a break -
('Northwich, Cheshire' becomes 'Northwich<br>Cheshire')
$row['Address']= str_replace(", ","<br>", $row['Address']);
then this is to be used below when an email is sent..
$body .= $row['Address'].",<br>\n";
However it is just coming up as blank in the email! Any ideas on where I am going wrong!?
I am try to split a string that comes from the database - its currently a comma i wish to replace with a break -
('Northwich, Cheshire' becomes 'Northwich<br>Cheshire')
$row['Address']= str_replace(", ","<br>", $row['Address']);
then this is to be used below when an email is sent..
$body .= $row['Address'].",<br>\n";
However it is just coming up as blank in the email! Any ideas on where I am going wrong!?