Yes,
That stated is obvious, but what I need is on the select statement not any insert or update.
The table containes non escaped html entities.
I need to select with the special charactors converted to a standards compliant form before it returns to php
an example would be
select CONCAT('<pre>',HTMLcode,'</pre>') AS HTMLCode
FROM mytable
Now I could just do...
while($row = mysql_fetch_assoc($result)) {
echo "<pre>".htmlspecialchars($row['HTMLcode'])."</pre>\n";
}
but the result I am trying to reach is a little more complicated than my examples.