Insert JPG created with information from a DB in HTML
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Insert JPG created with information from a DB in HTML

From: <bettina@coaster.ch>
Date: Sun Jun 26 2005 - 21:58:53 CEST

I look in my DB for a CODE. I find it and now I want to show the jpg
corresponding to this CODE in html. Here is my piece of code, however
the photo will not be shown....

<?php
-
-
-

$posavaso=mysql_fetch_field($result,CODE);
while ($row = mysql_fetch_assoc($result)) {

   $posavaso= $row["CODE"].".jpg"; //here I create my jpg
  }
}
?>
<img src="../Fotos/<? $posavaso?> width="215" height="108">

...

any tips???
Received on Mon Oct 24 02:08:32 2005