nl2br not working
Posted: Tue Apr 22, 2008 1:17 pm
Code: Select all
$user = mysql_real_escape_string($_POST['textUser']);
$arti = nl2br(strip_tags(mysql_real_escape_string($_POST['textArticle'])));
$title = strip_tags(mysql_real_escape_string($_POST['textTitle']));
$cat = mysql_real_escape_string($_POST['select']);
$time = time();
mysql_query("INSERT INTO sim_articles (title, content, cat, added) VALUES ('$title','$arti','$cat','$time')") or die(mysql_error());
$msg = "Article Successfully submitted";when i display the article from sim_articles $content. it displays everything on one line. any ideas why?