How'd you put it into the database in the first place?  I'm betting that, if
you look at your database directly (not through a UI), you'll find the data
is stored as "<IMG...".

Anyway, wouldn't it be easier just to store "foo.gif" in the database rather
than the full line?

----- Original Message -----
From: "Michele Santucci" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 14:20
Subject: PHP & MySQL


I have a stupid problem with PHP & MySQL (I'm a newbie of course):

I push in a text/blob record a string like this:

<img src="foo.gif" border="0">

when I read  & print this record with PHP (using a simple echo statement ) I
got back the string translated in this way:

&lt;IMG SRC=\&quot;foo.gif\&quot; border=\&quot;0\&quot;&gt;

How can I prevent PHP from doing this translation and giving me back just
what I wrote inside the field?


           bye by{t}e[s].... TuX!



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to