Mailinglisten-Archive |
ich mache es so:
in der seite als img tag
echo "<img src = \"bildholen.php?id=$Bild_Id\" border=0 align=\"left\"
hspace=\"10\" vspace=\"5\" height=\"$BildHeight\" width=\"$BildWidth\">";
wobei ich in der datenbank die BildHeight, BildWidth und das format abgelegt
habe
die datei bildholen.php
<schipp>
$mySQL_ID = mysql_pconnect($mySQL_host, $mySQL_user, $mySQL_pwd);
$data_result = mysql_db_query($dbName, "SELECT * FROM $descTableName WHERE
ID=$id");
$data = mysql_fetch_array($data_result);
header("Content-type: image/".$data[format]);
echo $data[bild];
</schipp>
Franz-Josef
php::bar PHP Wiki - Listenarchive