Answer Posted / madhu
nl2br is used for new for every entry
example :
<?php
mysql_connect("localhost","root","");
mysql_select_db("databasename");
$query=mysql_query("select * from table");
while($row=mysql_fetch_assoc($query)){
$var = $row['data'];
echo nl2br($var);
?>
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does addslashes do in php?
Why is overriding runtime?
What is in a cookie?
How to block direct directory access in PHP?
What is echo and print in php?
How to insert an new array element in array?
Is python easier than php?
How to access standard error stream in PHP?
How to convert one date format into another in php?
Define soundex()?
Is it possible to protect special characters in a query string?
What is the difference between characters and #?
What is htmlentities function in php?
What are the benefits of using php and mysql?
What function do we use to find length of string, and length of array?