Formatting text returned from MySQL table fields.
tag. To do this, use str_replace like this:
$q1 = $row_Recordset1['tc_q1'];
$q1 = str_replace("\n", "
", $q1);
echo $q1;
?>
I used this technique on returned portfolio pages in the Pt. Loma project. Could also replace "\r".
0 Comments:
Post a Comment
<< Home