On 2009-05-01, Tomas Vondra wrote:
> Hi,
>
> I've run into some strange troubles with a quite simple web application
> that stores data in a PostgreSQL database. It is a simple image gallery,
> displaying multiple thumbnails (stored in a bytea column) on a single
> page generated by PHP. The pr
Hi,
Tomas Vondra wrote:
$conn = pg_connect(...);
$res = pg_query("SELECT mime, thumbnail_data FROM images WHERE filename
= ");
$row = pg_fetch_assoc($row);
header('Content-Type: ' . $row['mime']);
echo pg_unescape_bytea($row['thumbnail_data']);
PHP?
Try running your script in a PHP debu
Tomas Vondra wrote:
> $conn = pg_connect(...);
> $res = pg_query("SELECT mime, thumbnail_data FROM images WHERE filename
> = ");
> $row = pg_fetch_assoc($row);
> header('Content-Type: ' . $row['mime']);
> echo pg_unescape_bytea($row['thumbnail_data']);
PHP?
Try running your script in a PHP d
Hi,
I've run into some strange troubles with a quite simple web application
that stores data in a PostgreSQL database. It is a simple image gallery,
displaying multiple thumbnails (stored in a bytea column) on a single
page generated by PHP. The problem is some of the images are not displayed.