RE: [PHP] Problems with images..

From: Date: Mon, 03 Nov 2008 14:20:14 +0000
Subject: RE: [PHP] Problems with images..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-282792@lists.php.net to get a copy of this message
> -----Original Message----- > From: Anders Norrbring [mailto:lists@norrbring.se] > Sent: Monday, November 03, 2008 7:44 AM > To: php-general@lists.php.net > Subject: [PHP] Problems with images.. > > I've been staring myself blind, so now I don't get anywhere, please do > advice.. > > I have a web page printed with PHP, in a table I need to display images > that > are stored in a SQL DB. > Getting the images into variables isn't an issue at all, but how do I > output > it? > This is what I want to accomplish: > > <tr><td>Current image:</td><td> - THE IMAGE HERE - > </td></tr> > > Starting to pull my hair.. <tr><td>Current image:</td><td><img src="<?= $variableName ?>" /></td></tr> If you don't have the proper INI setting to allow for the short-hand <?= ?>, you can replace it with: <?php echo $variableName; ?> If this made you pull your hair out, then perhaps you should go back and get a fundamental understanding of HTML and PHP basics before trying to combine the two. Just sayin'. HTH, Todd Boyd Web Programmer

« previous php.general (#282792) next »