NYCPHP Meetup

NYPHP.org

[nycphp-talk] opening files

Susan Shemin susan_shemin at yahoo.com
Thu Oct 25 20:26:11 EDT 2007


Just adding on David's answer -- put the name/path of the image in a variable in your database.  I've done it because the name of the image matches the name of the record entry so it's easy to locate the correct image to display through a query.  Let's say the business is Susan so my logo for the business is named susan.jpg which I can easily locate in a query.

susan


----- Original Message ----
From: David Krings <ramons at gmx.net>
To: NYPHP Talk <talk at lists.nyphp.org>
Sent: Thursday, October 25, 2007 3:37:01 PM
Subject: Re: [nycphp-talk] opening files

selyah wrote:
> Hello Folks:
> I am still relatively new with php and am enjoying it very much.  I am 
> creating a html script to show images  on a page.  instead of creating a 
> source image for  all of the images, i would like to incorporate a php 
> script that would "go" to the file location where all of the images are 
> and display them.  I wrote a script but it does not work.  Any help or 
> ideas ?  thanks
> new guy

You'd need to provide some code samples for us to give you some advice. Also, 
what do you consider the difference between "creating a source image" and "go 
to the location where all of the images are and display them"? I'd establish a 
place where all images are (as appears to be given in your case), then write a 
script that creates pages with <img> tags that point to the image in the 
specific location.

I created and still work on a very similar system with a database backend that 
allows for quite complex searches and a bunch of other stuff.

Basically, you need to tell us what you did so that we can tell you what you 
did wrong.

David
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071025/7e067181/attachment.html>


More information about the talk mailing list