----- Original Message -----
From: "Michele Santucci" <[EMAIL PROTECTED]>
To: "Rolf Hopkins" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 15:33
Subject: Re: PHP & MySQL


>
> > 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 "&lt;IMG...".
>
> No the data was stored in the right way! The problem wasn't here but in
some
> code lines around the one I was writing (I was modifing a script made by
> someone else).
> There was a calling to $row[$k]=htmlentities($row[$k]), that I just
removed
> and I got what I was looking for...

Yea! of course, the htmlentities would cause a problem in this case.

>
> > Anyway, wouldn't it be easier just to store "foo.gif" in the database
> rather
> > than the full line?
>
> It could be a good idea but right now I have to improve my skills on
> low-level php coding before starting to use advanced features of
> php/mysql...

Actually, it's not that much harder.  Use an sql statement to get it into a
variable, $foo say, as normal and then use either

1. <?php print("<img src=\"$foo\" border=\"0\">") ?>

or

2. <img src="<?php print($foo) ?>" border="0">

...and you'll probably have to do combinations, depending on what you are
doing.

>
> Thnx again to anyone....
>
>
>
>            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