Re: a problem with datagarid and images
| From: | Mark Wiesemann | Date: | Wed, 22 Aug 2007 16:43:43 +0000 |
| Subject: | Re: a problem with datagarid and images | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27840@lists.php.net to get a copy of this message | ||
Hi Michael,
Michael Tadmor wrote:
> I'm using the pear-datagrid along with pg-sql.
> i want to display images using the htmlTable and the toHtml() method.
> on the Database i have this string "<img src=imgFileName.bmp>" stored but
> when the table is displayed on the web-page i'm getting that string instead
> of the html it represents (which is the picture itself).
> how can I show the picture using the datagrid?
By default htmlspecialchars() is used for all cells that don't use a
formatter callback. You can disable this behaviour by setting the
'convertEntities' option to false, c.p.:
http://pear.php.net/manual/en/package.structures.structures-datagrid.structures-datagrid-renderer.htmltable.php
Regards,
Mark
--
http://www.markwiesemann.eu