PDA

View Full Version : MySql Reading Html Text Problem



un9tsandeep
29th March 2012, 13:06
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....................

un9tsandeep
8th May 2012, 11:48
please do something to solve my problem.

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

Spitfire
15th May 2012, 16:47
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.

ChrisW67
16th May 2012, 00:48
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?