English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

I have a website. It is kind of like a one page gallery. It has about 10 pictures, each picture is a default picture, say "1.jpg", "2.jpg", "3.jpg" etc...... but when someone uploads I want it to upload in place of that picture. So the picture that the person uploads must be changed to 1.jpg, and the next persons must be changed to 2.jpg to overwrite the default one.

Can this all be done with a php script? and how complicating would the script be?

2007-12-01 16:11:08 · 3 answers · asked by Mikey185 1 in Computers & Internet Programming & Design

3 answers

Yes, it can by done by using PHP with or without database..

if you are not using database, you will check first the contents of the destination folder, and check the filename of the last uploaded image.

2007-12-01 16:22:52 · answer #1 · answered by samueL 2 · 0 0

Yes; Not very complicated. Are you using MySQL to store the data?

2007-12-02 00:14:01 · answer #2 · answered by mdigitale 7 · 0 0

MIKEY RESPONSE:

I'm not using mySQL, but i suppose I could. New to PHP and never touched mySQL, just installed it a few minutes ago

2007-12-02 00:25:52 · answer #3 · answered by Kenji C 2 · 0 0

fedest.com, questions and answers