I have created a simple wall post feature, like on FaceBook.
A user writes a post, the post is submitted to the database and then echoed back onto the website; that all
PHP function nl2br converts newlines to "" breaks. So, $wallpost=nl2br($wallpost); should accomplish the task.
$wallpost=nl2br($wallpost);