Subject | blob -> jpg |
---|---|
Author | Dmitry Kalugin |
Post date | 2005-03-29T09:41:36Z |
Hello, firebird-php!
Displays an empty scope without a picture
Where at me the error? A picture in a base is
exactly
<?php
header("Content-type: image/jpeg");
if (isset($_GET["ID"])) {
$ID=$_GET["ID"];
$sql="select jpgphoto from photos where ID=".$ID;
require("user.and.pasword.inc.php");
$rs=ibase_query($dbh,$sql);
if ($row=ibase_fetch_row($rs)) {
$jpg=$row[0];
echo $jpg;
}
ibase_free_result($rs);
ibase_close();
}
?>
--
Displays an empty scope without a picture
Where at me the error? A picture in a base is
exactly
<?php
header("Content-type: image/jpeg");
if (isset($_GET["ID"])) {
$ID=$_GET["ID"];
$sql="select jpgphoto from photos where ID=".$ID;
require("user.and.pasword.inc.php");
$rs=ibase_query($dbh,$sql);
if ($row=ibase_fetch_row($rs)) {
$jpg=$row[0];
echo $jpg;
}
ibase_free_result($rs);
ibase_close();
}
?>
--