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 language is similar to php?
How to check a variable is array or not in php?
Tell me what is the main difference between php 4 and php 5?
Why shouldn't I use mysql_* functions in php?
Does php support overloading?
What is the use of is_array() and in_array()?
How to get the length of string?
Write down the benefits of php7?
How would you declare a function that receives one parameter name hello?
Does empty check for null?
What is cookie in php with example?
How to set a page as a home page in a php based site?
What is file upload?
What is the use session in php?
What is mysqli_fetch_array?