007
01.08.2003, 14:06 Uhr
mike
Pinguinhüpfer (Operator)
|
Hi! Hab jetzt die Beta-Lösung gefunden
PHP 4: |
<?php $id = $_GET['memberid']; $conn = pg_Connect("host=localhost dbname=scmaindb user=postgres password=honda" ); $rs = pg_exec($conn, "SELECT blobdata FROM tbluserdata WHERE blobid = $id;"); $rowcount = pg_NumRows($rs);
if($rowcount > 0) { $pic = pg_Fetch_Array($rs, 0); $row = pg_fetch_row($rs, 0);
pg_exec($conn, "BEGIN"); $loid = pg_loopen($conn, $row[0], "r");
header("Content-type: image/gif");
pg_loreadall($loid); pg_loclose($loid);
pg_exec ($conn, "COMMIT"); } pg_Close($conn); ?>
|
mfg --
|