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
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
What is a php web application?
How to remove the new line character from the end of a text line in php?
How to add 301 redirects in PHP?
How to create a directory?
What is varchar mysql?
What is the differences between $a != $B and $a !== $B?
Which function is used to strip whitespace?
Do you know what is use of count() function in php?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
Does php support inheritance?
How to send email using php script?
Explain include(), include_once, require() and require_once?
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
Is php a low level language?