Re: storing images in database
| From: | Martin Norland | Date: | Tue, 25 Jan 2005 22:09:52 +0000 |
| Subject: | Re: storing images in database | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38345@lists.php.net to get a copy of this message | ||
Bastien Koert wrote:
Its not src='id=$id'> that will defnintely blow up.... echo '<img src="./path/to/image.php?id=$id">'; where $id is the id of the record you are trying to get the image to... BastienFrom: Chip Wiegand <chip.wiegand@simrad.com> [snip]
<?php function shed_light() {In testing this I have added the code samples to a page and have it working except the path statement is not correct. For now, I've just added all the code to one page, rather than including a second page. The statement - echo '<img src="id=$id">'; is resulting in this error - The requested URL /id=$id was not found on this server. Any suggestions?
$wont = "that"; $output = "would";$variables = "work";
$values = "fine";$because = "actually";
$of = "without"; $single = "single"; $quotes = "quotes"; // and with a "?" because it's the same script.echo '$wont $output $variables $values $because $of $single $quotes!'; // echo '<img src="./path/to/image.php?id='.$id.'">'; // echo '<img src="?id='.$id.'">'; } shed_light(); ?> Cheers, -- - Martin Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital.