Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple HTML markup to pass thru

Status
Not open for further replies.

Dryvlyne

IS-IT--Management
Oct 15, 2004
25
US
I'm looking for a simple way of adding HTML tags like
Code:
<b>sample data</b>
and
Code:
sentence1
<br>
sentence2
within my tables so that when I pull out that data onto a web page it displays accordingly.

Thanks
 
Hi

What do you want exactly ?
Code:
[blue]SQL>[/blue] create table notmytable ( id number, html varchar2(1000) );

Table created.

[blue]SQL>[/blue] insert into notmytable values ( 1, '<b>sample data</b>' );

1 row created.

[blue]SQL>[/blue] insert into notmytable values ( 2, 'sentence1'||chr(13)||chr(10)||'<br>'||chr(13)||chr(10)||'sentence2' );

1 row created.

[blue]SQL>[/blue] select * from notmytable;

        ID HTML
---------- -------------------------------------------------
         1 <b>sample data</b>
         2 sentence1
           <br>
           sentence2

Feherke.
 
Feherke,

That's exactly what I want to do and I was able to do that. The only problem is when I pull it out of the database onto a web page the data is not bolded and there are not line breaks where they should be.

Perhaps I posted this in the wrong forum - maybe the problem is on the server side where ColdFusion is being using to pull the data from the Oracle DB?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top