1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Html code in Mysql

Discussion in 'MySQL' started by _vlada_, Nov 10, 2009.

  1. #1
    Hello!

    Trying to import text file in database with html codes in some fields and I need them to be displayed as html again.

    example: <b>digital point</b>


    but, I always get displayed only digital point, without <b></b>


    I checked database and I see html codes but, they wont be rendered.
    When I open page source in web browser html codes are not available.

    Do I need to import in another way, or I need editing of some php file regarding pulling information from database to html code be displayed?
     
    _vlada_, Nov 10, 2009 IP
  2. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #2
    You say that you can see the "html tags" stored in your database table.
    Maybe the script which pulls out the data from your database is stripping html tags.
    Did you check that file?

    If you can post the source code of the file that grabs data and outputs to browser - you can get better response.
     
    krishmk, Nov 10, 2009 IP
  3. _vlada_

    _vlada_ Peon

    Messages:
    743
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks krishmk for response. Yes I can see code as I see it in simply html page: <li> <br> <b> etc....

    there are bunch of php files, but since I do not have a clue about php I think it is in "common.php" file. Here it is:

     
    _vlada_, Nov 10, 2009 IP
  4. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #4
    Can you post the code of the page where you are facing the problem?
     
    mwasif, Nov 10, 2009 IP
  5. dhaval300

    dhaval300 Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    "There is a problem with the database<br><br>"....u have to add like

    "There is a problem with the database"."<br>"."<br>"
     
    dhaval300, Nov 18, 2009 IP