Re: img inside html_table

From: Date: Mon, 16 Nov 2009 10:46:25 +0000
Subject: Re: img inside html_table
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30148@lists.php.net to get a copy of this message
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

« previous php.pear.general (#30148) next »