How can we retrieved the data from database and perform as WYSWYG in the pdf format.

Text can be aligned, centered or justified. The cell block can be framed and the background painted.
The Solution is we need to replace the '\r' to become a '\n'.
example :
$myString = str_replace('\\r','\n',mysql_real_escape_string($databaseResult));
$pdf->MultiCell(0,4,$myString,0,0,0);
mysql_real_escape_string — Escapes special characters in a string for use in a SQL statement
this info from Charlie,thanks:
No comments:
Post a Comment
Your comments is appreciate.