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 type of headers that PHP supports?
Tell me how to set a page as a home page in a php based site?
Php code to find whether a number armstrong or not?
what is session_set_save_handler in PHP?
What is php oops concepts?
What is var_dump?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
Can I include php in javascript?
What is "print" in php?
What is the function used to change the root directory in PHP?
What are properties in php?
What is the difference between get & post ?
What is inheritance in php? How many types of inheritance supports php?
What is traits? How it is used in php?
What is php pathinfo?