Hi, I use the code below so as to print a text:
$query_a = "SELECT * FROM table WHERE id=(SELECT MAX(id) FROM table)"; $result_a= mysql_query($query_a) or die(mysql_error()); $text_a = stripslashes(nl2br($row_a["text"])); echo "<div class='uneven post'>"; echo "<p align='justify'>".$text_a."</p>"; echo "</div>";
In variable $text is stored text from a textarea (form).
The code is Ok , the problem I have is that the whole text is printed, while I would prefer to print the two first lines from text or the text until the first fullstop ('.').
I ask it because then I want to use a link , for instance more which direct in another page.
Could someone help me ??
Thanks a lot!