php-db | 2001071
Date: 07/02/01
- Next message: Dobromir Velev: "Re: [PHP-DB] adding Carrol O'Conner in a form"
- Previous message: kachaloo: "[PHP-DB] Showing an image"
- Maybe in reply to: kachaloo: "[PHP-DB] Showing an image"
- Next in thread: kachaloo: "[PHP-DB] wht ide ?"
- Reply: kachaloo: "[PHP-DB] wht ide ?"
- Reply: kachaloo: "Re: [PHP-DB] Showing an image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
what you should actually do is save that script as something like
"image.php" and then on the page where you want to have text + images, do
something like
<html>
<body>
<img src="image.php?uid=xxx" border="0"><br>
I am some text under the image that is grabbed from the DB
</body>
</html>
assuming that the image.php page accesses teh DB based on a car called "uid'
which represents a key to pull the right image, in this case it is "xxx" :)
HTH
Beau
// -----Original Message-----
// From: kachaloo [mailto:kachaloo <email protected>]
// Sent: Monday, 2 July 2001 3:38 PM
// To: php-db <email protected>
// Subject: [PHP-DB] Showing an image
//
//
// HI,
// I want to show an image from a database but to do that I am using :
// $result = <email protected>($sql);
// $data = <email protected>($result, 0, "PICTURE");
// $type = <email protected>($result, 0, "FILETYPE");
// Header("Content-type: $type");
// echo $data;
//
//
// but after this I also want to show some text info. How can I
// do this ? I
// will have to use something else besides header. Please Help.
// Thanks,
// Vishal
//
//
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: php-db-unsubscribe <email protected>
// For additional commands, e-mail: php-db-help <email protected>
// To contact the list administrators, e-mail:
// php-list-admin <email protected>
//
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Dobromir Velev: "Re: [PHP-DB] adding Carrol O'Conner in a form"
- Previous message: kachaloo: "[PHP-DB] Showing an image"
- Maybe in reply to: kachaloo: "[PHP-DB] Showing an image"
- Next in thread: kachaloo: "[PHP-DB] wht ide ?"
- Reply: kachaloo: "[PHP-DB] wht ide ?"
- Reply: kachaloo: "Re: [PHP-DB] Showing an image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

