Html tags executed when retrived from database

Exit
what happens is the html executes ...........

It is fairly difficult to answer this question, as:
HTML is not "executed".
A database defently does not do anything special to HTML.
"it is multi processing using code "Huh?
Please .... dont .... write ... like ... this
i am also working on forum ...
but i get these html tags executed ...
when they are retrived and shown... OK, so you are write some forum software, and in the text area your users are putting HTML tags (<b>I'm bold</b>) and you don't want that to happen?
A simple solution would be BEFORE you insert this data into your varchar replace all the > with &gt; < with &lt; and & with &amp;
Message was edited by:
mlk

Similar Messages

  • Time changes when retrived from Database.

    I insert the time in a string format to the database (dd-MM-yyyy hh:mm:ss). I retrive the string from database & parse it to date using .parse(string) function. But the date retrived is not the date present in database.
    Database value is 15/09/2001 01:30:30
    & the retrived value is 21-02-0021 01:30:30
    How do i set the time difference !!!

    Your .parse(string) is for some reason assuming that your date is in yy/mm/dd format. It takes day 2001 of month 9 in year 15 and normalizes that to be day 21 of month 2 in year 21. You haven't said what you are using to parse the string, but if it's a SimpleDateFormat then you need to review how you are setting it up.

  • Create link when retreive from database

    Hi, I created database called "Homepage", and i created table
    called "homenews" inside of "homepage" database.
    I also created two column which is "News_Name" and
    "News_URL".
    I use dreamweaver and is works great when i retreive from
    databse, but i want to change to have link, let say first colmn for
    "news_name i put cnn, and second colmn for News_URL i put
    www.cnn.com, my question is that how i can write php code to create
    url link of "www.cnn.com" on the text called "cnn" when retreive
    from database!
    is this is correct code!
    <?php echo '<a
    href="'.$row_HomeNews[News_URL].'">'.$row_HomeNews[News_Name
    ].'</a>'; ?>
    if so when why I'm getting errors!
    AM

    Alidad wrote:
    > Hi, I created database called "Homepage", and i created
    table called "homenews"
    > inside of "homepage" database.
    > I also created two column which is "News_Name" and
    "News_URL".
    >
    > I use dreamweaver and is works great when i retreive
    from databse, but i want
    > to change to have link, let say first colmn for
    "news_name i put cnn, and
    > second colmn for News_URL i put www.cnn.com, my question
    is that how i can
    > write php code to create url link of "www.cnn.com" on
    the text called "cnn"
    > when retreive from database!
    >
    > is this is correct code!
    >
    > <?php echo '<a
    href="'.$row_HomeNews[News_URL].'">'.$row_HomeNews[News_Name
    > ].'</a>'; ?>
    >
    > if so when why I'm getting errors!
    What errors are you getting?
    For the looks of your code, if you have www.cnn.com in the
    News_URL column, then the link you're generating will not go to
    CNN. You need to include the
    http:// as part of your link. Even though you
    can copy and paste www.cnn.com into the browser and go to the
    correct place, if it is used as a link in a page, then it has to
    have the
    http:// to go to be able to leave the current
    site and go to the correct place.
    Danilo Celic
    | Extending Knowledge Daily :
    http://CommunityMX.com/
    | Adobe Community Expert

  • LTR - Error occurred when selecting from database

    Hi,
    We created couple of configurations using LTRC in our SLT systems. When i try to check these in transaction LTR, they are not displayed, just getting the error - Error occurred when selecting from database (Attached screenshot). All the required SICF for SLT has already been activated. Any suggestions how to fix this issue?
    Thanks,
    Saravanan

    Hi Experts,
    Did anybody get the solution of this error ,if yes please reply?
    I am getting below error when I am refreshing the current config or creating a new one in LTR
    " Error occurred when selecting from database"
    Thanks for your help,
    Balwant

  • How stored procedure get executed when called from java

    When we create a stored procedure or function in oracle, it is compiled and stored there. From java when we call them no compilation is performed its a simple call. When a function or stored procedure is invoked from multiple instance of java objects(for a single session), does the stored procedure clone it self so that it can be called by different java objects which I think not possible at all. In such cases when one java object is interacting with the stored procedure, does other java objects go on a wait state. What happens if sessions are different.
    Please help.

    >
    does oracle creates multiple instance of a particular stored procedure for different sessions or connections. if not then there might be some kind of waiting principle followed.. what happens exactly
    >
    What happens exactly is detailed in Chap. 14 Memory Architecture ni the Database concepts doc
    http://docs.oracle.com/cd/E14072_01/server.112/e10713/memory.htm#i21266
    The code is shared but the data isn't (see the lone exception to this below).
    See the section on the Library Cache
    >
    Program Units and the Library Cache
    The library cache holds executable forms of PL/SQL programs and Java classes. These items are collectively referred to as program units.
    The database processes program units similarly to SQL statements. For example, the database allocates a shared area to hold the parsed, compiled form of a PL/SQL program. The database allocates a private area to hold values specific to the session that runs the program, including local, global, and package variables, and buffers for executing SQL. If multiple users run the same program, then each user maintains a separate copy of his or her private SQL area, which holds session-specific values, and accesses a single shared SQL area.
    >
    The exception is when code uses the SERIALLY_REUSABLE pragma. In that case the memory for package state is in the SGA and users do not have their own copy in their UGA.
    See the SERIALLY_REUSABLE pragma in the PL/SQL Language doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/seriallyreusable_pragma.htm
    >
    The global memory for serially reusable packages is pooled in the System Global Area (SGA), not allocated to individual users in the User Global Area (UGA). That way, the package work area can be reused. When the call to the server ends, the memory is returned to the pool. Each time the package is reused, its public variables are initialized to their default values or to NULL.
    Serially reusable packages cannot be accessed from database triggers or other PL/SQL subprograms that are called from SQL statements. If you try, the database generates an error.

  • OWB PRO out there : is it possible SQL to execute OMB*PLUS from Database ?

    Hi,
    With 11g out : is there any expert who sucessfully integrate pl/sql routine to call OMB. Here's the point : You have an APEX application and you design your stuff and at one point you wish you just have to press a button and generate a first draft of your design in the OWB repository, and then developpers can have a frame to start designing from your perspective.
    Also, imagine you have an APEX form to approve the testing of a design or process flow or both, and when you press the i approve button, you get call an OMB*Plus routine that do all the export->import reconcile and deploy thing!
    I don't think i'm alone to need this kind of stuff. So since OWB is Java, and Oracle database speek Java : is it possible to think of a quick solution ?
    Thank you all.
    Message was edited by:
    bpaquet

    Hi bpaquet,
    As you know OMB+ is TCL extension, and as i know OMB is not integrated into RDBMS.
    I think, there can be several solutions.
    1. Execute shell scripts from db using dbms_pipe package.
    2. Execute shell scripts using some java external procedure.
    3. Create some OS scheduled job (crontab), which will check some values in DB and execute OMB scripts.
    Regards

  • Html tags removed when #COLUMN_HEADER# is used in column template

    Hi all,
    I'm using APEX 4.0.2, theme 2 Builder Blue.
    I am trying to add html tags to dynamically generated column headings of a dynamic SQL Report.
    When using a standard report template, the headings contain the html tags. However when I want to use one of the vertical lay-outs all html tags are removed. After some research I found out that when the substitution string #COLUMN_HEADER# is used within the column headings part of the template, the html tags are being preserved. They are removed however when the #COLUMN_HEADER# substitution string is used in the column templates part of the template.
    This is easily testable by using for instance "return htf.bold ('COL01')" as dynamic column header.
    Is this a bug or am I overlooking something? Is there another solution maybe to preserve html tags in the column heading?
    Cheers, Erik

    webdynpro appears to use XHTML instead of HTML so the syntax is a bit more limitted and more picky.
    this link explains the difference between the two syntaxes:
    http://reference.sitepoint.com/html/html-xhtml-syntax
    you can test your tags in this validator tool
    http://validator.w3.org
    solved?  have a good week, and holidays.

  • Eurosign not displayed correctly when picked from database

    Hi ..
    I'm having a problem getting a eurosign stored in an Oracle Database to be displayed correctly in my Crystal Reports 11.5.
    When using the built in (preview) Crystal Viewer, the eurosign is displayed correctly, but when I want to print the report directly to a printer or to export it to pdf the eurosign is displayed as a box?
    It only haapens when i need to pick the eurosign from the database. If I insert in a textbox on the report, it will show correctly.
    Please Help.
    Best regards,
    Jacob

    What is the source of the text stored in the database. I ran into an issue a ways back where someone was copying news articles from a website into their database and the euro symbol would not display correctly (unless the option HTML Text Interpretation was used).
    You might want to do a quick check to see if it is stored as an ascii character using a formula similar to the following;
    asc(mid({database, x, 1}))
    where x = the position of the euro symbol in the string.
    The formula result should be 128.
    Edited by: Graham Cunningham on May 22, 2009 12:20 PM

  • Problem populating html form fields with data from database.

    I'm using a straight forward piece of code to populate a form with data from a database, to create and 'edit record' page. The code is as follows;
    TO RETREVE THE DATA FROM THE DATABASE;
         $query = "SELECT * FROM $table WHERE newsletter_id = '$newsletter_id'" ;
         mysql_select_db($database) ;
         $result = mysql_query($query, $connect);
         $numRows = mysql_num_rows($result);
         $dbnewsletter_title = mysql_result($result,$i,'newsletter_title');
    TO POPULATE THE FORM FEILD;
    <tr>
              <td width="140"><p class="admin">Newsletter title</p></td>
              <td><input name="newsletter_title" type="text" <? print "value=$dbnewsletter_title";}?> /></td>
            </tr>
    However, when I view the page, the string shows in the text feild, but seems to be split at the point of the first space. So basically only the first word of the string shows in the text field. If I try to print '$dbnewsletter_title' outside of the table, the string is shown in full as it should be.
    Does anyone know what is causing this problem?
    Many Thanks

    Put the value in quotes:
    <?php print "value='$dbnewsletter_title'"; ?>

  • HTML Tag problem when sending mails through APEX

    Hi,
    My code for sending mail is below:
    DECLARE
    l_body CLOB;
    l_body_html CLOB;
    cursor c2 is
    SELECT pn,pdt_name FROM lib_details WHERE a_date BETWEEN to_date(:P13_SDATE,'DD-MON_YYYY') AND to_date(:P13_EDATE,'DD-MON-YYYY');
    BEGIN
    for c_lib in c2
    loop
    l_body_html:=l_body_html ||
    '<html><body>
    ul>
    li>'||c_lib.pn||' , '||c_lib.pdt_name||' /li>
    /ul>'; p;
    l_body_html:=l_body_html ||'</body></html>';
    apex_mail.send(
    p_to => 'xxxx',
    p_from => 'xxxx',
    p_body => l_body_html,
    p_subj => 'Test Mail');
    END;
    Gives me the output in the format below:
    all the <html><body> tags also comes along with the email, though I get the correct output, what is the problem here?
    I am not able to figure this out. Can someone help?
    OUTPUT
    <html><body>
    ul> li>a,b
    /ul><html><body>
    ul> li>c,d
    /ul><html><body>
    PLEASE NOTE: I have intentionally removed the starting tags (<) of ul and li so that the post will not be formatted.
    Edited by: Suzi on Feb 9, 2012 1:18 PM

    >
    Gives me the output in the format below:
    all the <html><body> tags also comes along with the email, though I get the correct output, what is the problem here?
    I am not able to figure this out. Can someone help?For HTML output you need to send it using the <tt>p_body_html</tt> parameter, not <tt>p_body</tt>.
    PLEASE NOTE: I have intentionally removed the starting tags (&lt;) of ul and li so that the post will not be formatted.Posting code wrapped in <tt>\...\</tt> tags eliminates the need to resort to these bizarre circumlocutions.

  • HTML TAG ISSUES WHEN LOADING SPRY

    hello. i'm having some issues when loading spry pages, the
    <a href> tags within the fragments of html pages that i'm
    loading with spry are deactivating themselves
    http://www.asiwouldsay.com/TEST/"
    the zine link is a good example of this as well as some of
    the artist pages when adding more html text the back buttons
    created stop working. all the pages work when loaded by itself but
    not as spry fragments.
    any help? i'm going crazy over here :)
    Thanks in advance

    The links aren't deactivated, what's happening is that your
    nav bar at the bottom (apDiv2) is absolutely positioned. When you
    load the zine page, the container you load it into is stretching to
    accomodate the zine content, and goes *underneath* your nav bar.
    Now when you click on what looks like a link, your nav bar is
    actually intercepting the click event.
    You can see what I mean by giving your nav bar a background
    color.
    --== Kin ==--

  • VB Script is not executing when deployig from SCCM 2012

    Manually my VB script is running successfully when executing from the Batch file which internally calls VB Script to suppress "HyperionSmartViewforOffice_11.1.2.1.0" add-in
    prompts pop up which occurs upon launching MS Excel.
    please  see the attached files for folder structure (Folderstructure.PNG), add-in pop up error (add in pop up error.PNG).
    Batch Script:
    @ Echo Off
    msiexec /x {62190FC2-D90E-45A8-9ED8-9C523EC426E2} /qn
    removeExcelOpenKey.vbs
    vb script :
    Dim objExcel
    Dim addin
    On Error Resume Next
    Set objWb = objExcel.Workbooks("myAddin.xla")
    If Not wb Is Nothing Then
    wb.RunAutoMacros xlAutoClose
    End If
    Set objExcel = CreateObject("Excel.Application")
    For i = 0 To objExcel.Addins.Count
        Set objAddin= objExcel.Addins.item(i)
        If objAddin.Name = "HsTbar.xla" Then
            objAddin.Installed = False
        End If
    Next
    objExcel.Quit
    Set objExcel = Nothing
    tried to fail deploying the package and application (follwed detection method file , registry , windows installer ) as well but no luck.
    appreciated help .
    thanks,

    Manually my VB script is running successfully when executing from the Batch file which internally calls VB Script to suppress "HyperionSmartViewforOffice_11.1.2.1.0" add-in
    prompts pop up which occurs upon launching MS Excel.
    please  see the attached files for folder structure (Folderstructure.PNG), add-in pop up error (add in pop up error.PNG).
    Batch Script:
    @ Echo Off
    msiexec /x {62190FC2-D90E-45A8-9ED8-9C523EC426E2} /qn
    removeExcelOpenKey.vbs
    vb script :
    Dim objExcel
    Dim addin
    On Error Resume Next
    Set objWb = objExcel.Workbooks("myAddin.xla")
    If Not wb Is Nothing Then
    wb.RunAutoMacros xlAutoClose
    End If
    Set objExcel = CreateObject("Excel.Application")
    For i = 0 To objExcel.Addins.Count
        Set objAddin= objExcel.Addins.item(i)
        If objAddin.Name = "HsTbar.xla" Then
            objAddin.Installed = False
        End If
    Next
    objExcel.Quit
    Set objExcel = Nothing
    failed to deploy the package and application (followed detection method file , registry , windows installer ) as well but no luck.
    appreciated help .
    thanks,
    Gc.Hanumareddy

  • Retaining ID3 Tag information when transferring from player to computer.

    I know that this has been discussed already, but I'm having a tough time finding it... I have the zen touch and I was wondering if anyone could direct me to the post with information on how to keep the ID3 information on the player when music is transferred on to the computer instead of having it change over to the original information before it was put on the player?....or perhaps someone could reply with instructions on how to do this?

    In MediaSource's Tools->Settings->PC Music Library, click Properties to set the folder and filename convention. Then transfer the tracks from your MP3 player to MediaSource's PC Music Library. After that, right-click the PC Music Library node in MediaSource's Sources window (which is the leftmost window in MediaSurce) and select Update Tag. This will update the tag of the audio files with the track information seen in PC Music Library. Please note that the Update Tag feature is only available in MediaSource v3.

  • Tag issue when upgrading from PSE 7 to 11

    I've upgraded from PSE 7 to 11 and the tags for people, while there, do not appear in the "people" section fo PSE11. Any suggestions on how to get them all to show?

    In PSE11, people tags have been moved to People view, this view contains all people tags along with categories. In case you want to view them along with tags panel, it can be enabled through View->Show People in Tag panel.

  • HTML tag problem when adding Google rich snippets in templates?

    The new Google plus Rich Snippets allow us to add a schema tag like this example:
    <html itemscope itemtype="http://schema.org/Article">
    I can do this on my .html pages but as soon as I make any changes to the .dwt template for the page it reverts all of the tags back to <html>
    How do I stop this happening?
    I have tried:
    Changing preferences in Dreamweaver's default code rewrite settings to "'Never Rewrite Code' for HTML document type " but this does not appear to fix things.
    Very frustrating as I have lost days of work.
    Any help would be appreciated
    many thanks
    Craig

    I've done what you have said (I think) however something is not quite right. I am asssuming that I need to add the schema below the <BODY> tag if I make the changes to the template as you have suggested.
    This is my practice page which is in a template:
    http://www.psychics.co.uk/lovepsychic/index.html
    Following the Adobe instruction on the forum: High at the top of the header section we get this code:
    <!-- InstanceParam name="GRS" type="text" value="itemscope itemtype=&quot;http://schema.org/Product"" -->
    For the customised body tag we get this:
    <body itemscope itemtype="http://schema.org/Product">
    Then on the left column of the page and below the navigation and below the <body> I have added this:
    <!-- Start Google snippet -->
    <h1 itemprop="name" content="Love Psychics Readings">Love Psychics - Psychic Love Predictions Online</h1> 
    <img itemprop="image" content="http://www.psychics.co.uk/images/schema/love.jpg" src="/images/stars.gif" width="160" height="76" alt="Psychics and Mediums Network"></img> 
    <p itemprop="description" content="Getting a reading with love psychics to find out about relationships, love, romance, marriage and family. Article about our Love psychics readings onlineservices.">Copyright Psychics &amp; Mediums Network - QKE Ltd.</p>
      <!-- End Google snippet -->
    I must be getting close but it just shows the normal Google plus stuff.
    I need to get your microdata markup into the body of the document somewhere - otherwise Google will use the something like <title> and <meta description>  tags and guess at an image.
    Any idea where I am going wrong or is it a quirk in Dreamweaver?

Maybe you are looking for

  • How do i move photos from event to album?

    I cannot figure out how to move photos in iphoto from events to a new album, and did not find any answer in iphoto help.  I have a lot of files that I'd like to drag and drop if it is possible to do that.  I am using iphoto 2010.  Also, is there a ke

  • Zen V- is it worth

    OK after being told that i need to buy a new mp3 player after mine has a 'hardware problem' i got very cross and swore never to buy a creative product again... then I had a look round.. I?don't like ipods (my sister has one) and don't like the look o

  • TS3991 i can go to icloud, but keynote, pages, and numbers are not there

    I have an icloud account, but cannot access pages, keynote, or numbers.

  • Failed iCal import to 10.6.1 MBP from 10.4.11 G4

    I have eight calendars in iCal of which five appear to have transferred successfully. Three have not- they're 164KB, 131KB, and 33KB in size; some go back over 5 years. Attempts to import result in a message saying 'iCal can't read this calendar file

  • Cfmap with CF9.01 and Google map v3

    The information I've seen indicates there is a hotfix for CF9.01 which will allow the cfmap tag to work with Google maps v3.  We have installed the latest hot fixes.   I obtain an error when trying to use the Google maps v3 API key with the cfmap tag