Results 1 to 4 of 4

Thread: MySql Reading Html Text Problem

  1. #1
    Join Date
    Sep 2011
    Location
    India
    Posts
    21
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question MySql Reading Html Text Problem

    Dear all please help me regarding this problem...

    i have a table in my Database (MySQL) i am getting values from this table in my Desktop Application.

    my problem is that my table contains HTML Data in it and when i read it in my QT Application by executing simple select query and showing result as String, but it does not give me correct output....

    for example my table contains this:-

    <p><img src=\"/stryde/uploadfiles/Image/20070730848933001185786240_02021.gif\" alt=\"\" class=\"\" /></p>

    and after executing query i am getting the result like this:-

    <p><img src=\"/stryde/uploadfiles/Image/20070730848933001185786240_02021.gif\" alt=\"\" class=\"\" /></p>

    i want exact output from query which i have in the database now what should i do in this case please help me regarding this problem...

    is their any way please give me some solution for it....................

  2. #2
    Join Date
    Sep 2011
    Location
    India
    Posts
    21
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MySql Reading Html Text Problem

    please do something to solve my problem.

    does any body have some idea about it..................................

  3. #3
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: MySql Reading Html Text Problem

    How do you know what's exacly in the data base?
    How do you get data from the query?

    simple .toString() should give you what you want. Unless somewhere you use toHtml() or setHtml() or something.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: MySql Reading Html Text Problem

    please do something to solve my problem.
    Why? It's your problem to solve, and you are the only one with the necessary information and imperative to solve it.


    While we are at it:
    • How do you display the data you extracted from the database in order to compare?
    • You do realise the two strings are equivalent HTML don't you?

Similar Threads

  1. Problem: Reading and editing text file data
    By dipeshtech in forum Newbie
    Replies: 2
    Last Post: 3rd May 2011, 00:47
  2. Replies: 0
    Last Post: 2nd August 2010, 10:37
  3. Reading table from html code
    By abghosh in forum Qt Programming
    Replies: 4
    Last Post: 23rd February 2010, 19:00
  4. problem with reading text files
    By Axsis in forum Newbie
    Replies: 1
    Last Post: 25th April 2008, 13:29
  5. Replies: 0
    Last Post: 14th December 2007, 02:33

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.