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
Could we start a variable with number like $4name?
What is session_register()?
What are the encryption functions available in PHP?
How check variable is set or not in php?
What is the use of post in php?
What is difference between single quotes and double quotes in php?
What is mvc? Why its been used?
Explain about getters and setters in php?
Is it possible to destroy a cookie?
Is php procedural or oop?
What is php and its advantages?
Name some of the constants in php and their purpose.
Tell me what are the different types of errors in php?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?