RE: [PHP-DB] Displaying Graphics dynamically
| From: | Rubanowicz, Lisa | Date: | Mon, 12 Mar 2001 11:19:39 +0000 |
| Subject: | RE: [PHP-DB] Displaying Graphics dynamically | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7309@lists.php.net to get a copy of this message | ||
I would recommend this too. Also to make it easier, instead of giving the
updating person FTP access to upload tha images, I used an Upload page using
PHP to a certain images directory on the web server and all PHP links then
are pointed to this directory so all img links look something like this
<IMG SRC="pics/<? $image_name_variable ?>">
I am very much a beginner and was delighted to get this working
I used a variation off the following site
http://www.thickbook.com/extra/php_fileupload.phtml
I wish you well
All the Best
Lisa
-----Original Message-----
From: Russ Michell [mailto:r.j.michell@anglia.ac.uk]
Sent: Monday, March 12, 2001 10:33 AM
To: Mike Hammonds
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Displaying Graphics dynamically
Mike:
Depending on the number of images you wish to insert into the database,
you might wish to opt for the path to the image to be stored not the
image itself.
<img src="pathtoimage.gif" border="0">
Then use some sort of loop (I use a for loop) to go through the table
data (of paths-to-images) and display them dependent on whatever
criteria it is you are using.
HTH :)
Russ
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
http://gertrude.sipu.anglia.ac.uk/webteam
r.j.michell@anglia.ac.uk
+44 (0)1223 363271 ext 2331
www.theruss.com
#-------------------------------------------------------#
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net