php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login


New in This Group

registerrule calls a function that needs multiple variables
11/26/2009 11:19:40 AM

Problem with SMTP sevrer mail from php
11/20/2009 11:14:38 AM

img inside html_table
11/16/2009 11:22:11 AM

display blob in quickform
11/11/2009 8:25:35 AM

quickform question
11/5/2009 11:57:29 AM

unable to checkout select directories from SVN
10/20/2009 7:29:05 PM

Re: [PEAR] Quickform validation problem
10/20/2009 1:05:20 PM

[ANNOUNCEMENT] File_MARC-0.4.2 (beta) Released.
9/28/2009 1:26:47 AM

[ANNOUNCEMENT] HTML_Common2-2.0.0RC1 (beta) Released.
9/27/2009 7:22:26 AM

[ANNOUNCEMENT] XML_Tree-2.0.0RC3 (beta) Released.
9/27/2009 5:47:23 AM

img inside html_table Reply

Group: php.pear.general Subscribe Posted:11/16/2009 11:22:11 AM Replies:0 Views:17 Items(0)
------=_NextPart_000_003F_01CA66AF.0A5A9920
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi

I am new to pear and am trying to create an html_table from database =
fields. My question is how to display an <img> inside the cell. I am =
pulling information from mysql. The database field contains the link to =
where the image is stored.

I have tried to browse tutorials and documentation, but can not find any =
examples that display images. Are there any tutorials out there ? =20

Thanks
Andi
------=_NextPart_000_003F_01CA66AF.0A5A9920--

abak...@telkomsa.net ("Andrea Bakker")
11/16/2009 11:22:11 AM




Hi,

Andrea Bakker wrote:
> I am new to pear and am trying to create an html_table from database
> fields. My question is how to display an <img> inside the cell. I am
> pulling information from mysql. The database field contains the link to
> where the image is stored.

You can just write the <img> tag to a cell, just like any other text, e.g.:
$body->setCellContents(7, 4, '<img src="' . $src_from_db . '">');

> I have tried to browse tutorials and documentation, but can not find any
> examples that display images. Are there any tutorials out there ?

No, there is no special tutorial for this case, but as said above, there
is no need to do anything special in this case.

Regards,
Mark

wiesem...@php.net ("Mark Wiesemann")
11/16/2009 10:46:25 AM


Reply:
| or Email(not shown): Name: | Register | Login

Alert me when someone responds to this posting.











Newest Articles

note 97095 added to soapclient.soapclient
4/1/2010 5:58:19 AM

note 97094 added to function.sqlite-changes
4/1/2010 5:06:46 AM

note 97093 added to function.sqlite-changes
4/1/2010 5:06:21 AM

note 97092 added to ref.xmlrpc
4/1/2010 4:52:18 AM

note 97091 added to function.var-export
4/1/2010 3:32:03 AM