I'm currently using this code to print a multiple lines of text from database
$query_content= "select * from home ";
$result_content= mysql_query($query_content,$con);
while ($text = mysql_fetch_array($result_content))
{
$content = $text['homecontent'];
}
And using this HTML code:
<p>
<?php print $content; ?>
<p/>
The text inside the database is:
abc
def
ghi
But I'm getting this
abc def ghi
Any ideas?
Thanks.