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
Explain me the difference between include and require?
What is the use of the function 'imagetypes()'?
Tell me how can we get the error when there is a problem to upload a file?
Tell me what are the correct and the most two common way to start and finish a php block of code?
A process is identified by a unique___
What does odbc do in context with php?
Is php still used?
Explain scalar type declarations in php7?
What are the differences between require and include?
armstrong number by using php while number is given by the keyboard.?
What is "print" in php?
Where are cookies stored php?
How to return a value back to the function caller?
What does csrf token mismatch mean?
Tell me what is the use of "ksort" in php?