Inserting Images..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Darkside
Forum Commoner
Posts: 43
Joined: Wed Oct 30, 2002 4:18 pm

Inserting Images..

Post by Darkside »

Does any1 know if there is a way I can make 1 page and then have a php script that I could use to import the image into saving me having to make say 100 differnt php files (all the same) with diffent images in it..

Any tutorials would be nice..
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

That is entirely possible. Are you trying to get from a page of thumbnails to a larger image? Bit more detail and can probably help you better with code and/or find a tutorial that will suit.

Mac
Darkside
Forum Commoner
Posts: 43
Joined: Wed Oct 30, 2002 4:18 pm

bla

Post by Darkside »

eg.. Like of of those random Images makers.. like you make a random number and each of those numbers = an images so when you refresh.
you get a random image.


But.. onces ive done that I want to work on that so 'I' can tell it witch image i want it to show..

Ive found the image tutorial and saved from robouk but his site is down and I really cant find that tut anywhere and even if i do i'm not sure if i can make what i want with that script. keep the idea from above. ^^

Here's what I want.. I want to have a gallery page layed out like so:


------------------------------------------------------------------------------------
Ball
A picture that started of as a background Image but got abit out of hand

Open in new window | Download | Contact

------------------------------------------------------------------------------------
Fubar Back ground

a desktop back ground made to premote fubar-inc.com

Open in new window | Download | Contact
------------------------------------------------------------------------------------

Then on the open in new window link atm Ive got it too eg

http://www.no-order.co.uk/bg4.jpg

And it open up in a new window with the image on it. However the page is white and the Image is in the left hand corner.. Thats becuase it just the a jpeg. I want each image to have say a line break above and below and a close link+ have the background the same colour of my website.

The only way I know other then the idea above.. is to make a html page with the images centered and the background set etc.. but I have about 150 images and I dont want to have to make 150 html files and change all the urls and have each link goto there if I could have eg.. 1 page and 150 php links.
Post Reply