FireDolphin
Programmer
Urghhh! Help!
I'm going around in circles here. I need to simply query a MySQL db using PHP and return one of the fields as a hyperlink.I've tried various things inc:
select '<a href="' + fieldname + '">Click Here!</a>' from table
and
SELECT (CONCAT('<a href=" as hyperlink1 FROM table
These return just the text:
<a href="
with the source looking like this:
& lt;a href=& quot; quot;& gt;2& lt;/a& gt;
(I've had to put spaces afters the &s else this posting routine changes it!)
How can I stop the php being parsed to html as exact characters (< instead of & lt; etc) ???
Somebody please save me from caffeine overdose!
J
I'm going around in circles here. I need to simply query a MySQL db using PHP and return one of the fields as a hyperlink.I've tried various things inc:
select '<a href="' + fieldname + '">Click Here!</a>' from table
and
SELECT (CONCAT('<a href=" as hyperlink1 FROM table
These return just the text:
<a href="
with the source looking like this:
& lt;a href=& quot; quot;& gt;2& lt;/a& gt;
(I've had to put spaces afters the &s else this posting routine changes it!)
How can I stop the php being parsed to html as exact characters (< instead of & lt; etc) ???
Somebody please save me from caffeine overdose!
J