| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| An American Soldier ![]() | php & mysql help hey.. I have a problem, that i cannot seem to get rid of. The problem is when i insert text into the database it goes into like such paragraph1 paragraph2 it does it how i want.. Now when i use php to display it it comes out like paragraph1 paragraph2 ----------------------- Found My solution - $string2=nl2br($string1);
__________________ Completely Free cPanel Hosting -- Deployed to Afghanistan -- "There is no such thing as rich over-night unless you owned Google stock in 2006" Last edited by templaterave; 02-17-2007 at 09:33 PM. |
| |
| | #3 (permalink) | |
![]() | Quote:
I knew what he was talking about anyway, so, not always a need to post code
__________________ <?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?> | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |