I want to show a 'preview' of a lump of text from a mySQL database, of the first couple of lines of the text. I've been trying to use the 'split' command, but I'm getting fairly odd results.
here's my code:
$message_line= split("\\n",nl2br(htmlentities($row_Recordset1['mtext'])));
echo $message_line= split("\\n",nl2br(htmlentities($row_Recordset1['mtext'])));
echo $message_line[1]."\n".$message_line[2]."\n";
what'm I doing wrong? I've tried it without htmlentities or nl2br, and I also tried using chunk_split.
Thanks in advance