lukelukeluke
Technical User
hi there!
I have build a little entry form and a display site with php / mysql.
I've found out that if you enter thing like this into the databse: <?php ?>, it wont be displayed because its going to be integrated as a script into the site.
Further i found out that you can use htmlentities() to display database content correctly.
But i still have a problem: An enter is not displayed as a <br>. what can i do to let an entry like this:
be entered into the html code file as this:
to make it display correctly?
Thanks alot for your ideas!
best regards, luke
I have build a little entry form and a display site with php / mysql.
I've found out that if you enter thing like this into the databse: <?php ?>, it wont be displayed because its going to be integrated as a script into the site.
Further i found out that you can use htmlentities() to display database content correctly.
But i still have a problem: An enter is not displayed as a <br>. what can i do to let an entry like this:
Code:
hello
world
Code:
hello<br>
<br>
world
Thanks alot for your ideas!
best regards, luke