Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

nl2br is not working for database in php

$comments = stripcslashes($row["comments"]);

$commentsWithBreaks = nl2br($comments);

echo $commentsWithBreaks;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #working #database #php
ADD COMMENT
Topic
Name
9+5 =