Dear Everyone
Im sorry for this real newbie question. Im working on a project at http://www.hiphopmusicsource.co.uk/hiphopmu/view_cd.php
Im entering CD track listings into sql database.
When I retrieve the results in the web browser there is no way for me to tabulate the listing. I dont know how to word wrap it or make it understand the original line breaks when i typed it in..its just 2 lines..
can anyone please help me...
kindest regards
Dan
presenting data from sql database
Moderator: General Moderators
Hi there
Thanks very much for the help...ive been trying to use that but without success.
What page should this tag be on? The page with the htm form that originally submits the data/listing. Or the the page that finally presents the data?
Ive been trying to add it to the former. The actual data submission form...
<textarea name="cd_desc"><?echo $cd_desc;?></textarea>
do yuo think this is the correct place?
thanks so much for the help
Dan
Thanks very much for the help...ive been trying to use that but without success.
What page should this tag be on? The page with the htm form that originally submits the data/listing. Or the the page that finally presents the data?
Ive been trying to add it to the former. The actual data submission form...
<textarea name="cd_desc"><?echo $cd_desc;?></textarea>
do yuo think this is the correct place?
thanks so much for the help
Dan
-
JPlush76
- Forum Regular
- Posts: 819
- Joined: Thu Aug 01, 2002 5:42 pm
- Location: Los Angeles, CA
- Contact:
Code: Select all
<?php
//you wanna add it to the page that you're presenting the data on
<? echo nl2br($cd_desc); ?>
?>