Re: storing images in database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...

Bastien

From: Chip Wiegand <chip.wiegand@xxxxxxxxxx>
[snip]
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?

<?php function shed_light() { $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.


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux