PHP and mySQL problem

1 replies
I have a PHP-form page with a text-area and a text-box input.php. The input that I take in "input.php" is stored in a SQL table. The output is shown in another webpage "output.php" displaying the input that was taken in the text area and the text box. Now, the problem is that, in the text area, if a user uses line break(i.e., if he presses the enter key to go to the next line), it is stored in the SQL table. But, the output is given without the line break. So, how can I get a line break in the output, i.e, how can I add a <br /> tag after every line break in the SQL table?

Thanks in advance,
A link to a tutorial will be highly appreciated.
#mysql #php #problem

Trending Topics