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 is abstract class in php?
What is php session and how it works?
How to define a user function?
Tell me how to create a text file in php?
Why php is used in html?
Is set in php?
Tell me what is the importance of "action" attribute in a html form?
What is difference between php and wordpress?
What is the use of get and post method in php?
What is the difference between super () and this ()?
How can you create a session in php?
What is the function file_get_contents() useful for?
What are the different types of PHP arrays?
What is the purpose of a query?
What is regular expression in javascript?