- Messages
- 4,018
- Reaction score
- 120
- Points
- 0
Hi!
I just started learning PHP today (I got through a lot :biggrin: ) but I ran into something that I don't know how to do.
I have the following code:
However I have it so that UserInput has more than one line.
How do I echo more than one line?
Thanks! (I am planning on making my own CMS)
I just started learning PHP today (I got through a lot :biggrin: ) but I ran into something that I don't know how to do.
I have the following code:
PHP:
<?php
$con = mysql_connect("localhost","root","********");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT * FROM person");
while($row = mysql_fetch_array($result))
{
echo $row['UserInput'];
echo "<br />";
}
mysql_close($con);
?>
However I have it so that UserInput has more than one line.
How do I echo more than one line?
Thanks! (I am planning on making my own CMS)