pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
blobs didn't work??
2+ messages / 2 participants
[nested] [flat]

* blobs didn't work??
@ 2003-06-29 01:15 utomo restu <utomo@linuxmail.org>
  2003-06-29 12:10 ` Re: blobs didn't work?? Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
  0 siblings, 1 reply; 2+ messages in thread

From: utomo restu @ 2003-06-29 01:15 UTC (permalink / raw)
  To: Cornelia Boenigk <poppcorn@cornelia-boenigk.de>; +Cc: pgsql-php

dear all, 

spacialy tahnk's to cornelia,

> Hi utomo
> 
> Try it this way:
> Call your function detail.php from the <img>-TAg in your program and
> don't use print $img here
> Get the oid of the image that you want display.
> 
> <img src="detail.php?oid='.$oid.'">

> detail.php
> <?php
> ...
> pg_loreadall($ofp);
> pg_loclose($ofp);
> pg_exec($dbh, "END");
> }
> ?>

where i must put command <img src="detail.php?oid='.$oid.'"> ???
if beetwen <?php and pg_loreadall($ofp)its didn't work. next the syntax is i mind:

 detail.php
 <?php
 <img src="detail.php?oid='.$oid.'">
 pg_loreadall($ofp);
 pg_loclose($ofp);
 pg_exec($dbh, "END");
 }
 ?>

from the script, i still found error....
please help me......
thank's

best regards

utomo
indonesia
-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: blobs didn't work??
  2003-06-29 01:15 blobs didn't work?? utomo restu <utomo@linuxmail.org>
@ 2003-06-29 12:10 ` Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Cornelia Boenigk @ 2003-06-29 12:10 UTC (permalink / raw)
  To: utomo restu <utomo@linuxmail.org>; +Cc: pgsql-php

Hi utomo

> where i must put command <img src="detail.php?oid='.$oid.'"> ???

I am talking of two files. The first file is a normal php/html file
where you place the <img> tag to display the images. This file is
calling the display routine in the second file within the <img>-tag.

http://www.pgsql.info/dpunkt/showsource.php?datei=images.php
is an example for the file with the <img> tag. It calls the display
routine 'bildzeigen.php' with the oid as first parameter ($bild
contains the oid):

echo '<td><img src="bildzeigen.php?bild='.$bild.'"
'.$zeile["htmlstr"].'></td></tr>';

http://www.pgsql.info/dpunkt/showsource.php?datei=bildzeigen.php
is the routine which displays the image, called from the <img> in the
above file.

http://www.pgsql.info/dpunkt/images.php is the working example.

I hope this makes it clear.

Regards
Conni




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-06-29 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-29 01:15 blobs didn't work?? utomo restu <utomo@linuxmail.org>
2003-06-29 12:10 ` Cornelia Boenigk <poppcorn@cornelia-boenigk.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox