Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 11th, 2006, 06:05 PM
Registered User
Join Date: Jan 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rename multiple file upload in sequential order

Hello all.

I'm working on a site that allows the optional upload of 5 images. Currently, those images are saved to the "upload" folder in my root directory. I want these images to be renamed as:

"the username_photo1"
"the username_photo2" (if there are two photos)
"the username_photo3" (if there are three photos)
"the username_photo4" (if there are four photos)
"the username_photo5" (if there are five photos)

I am using php/mysql server model, and I am using PurePHPupload to do the image uploading. Any help would be greatly appreciated!
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Component for multiple file upload subhasps8 ASP.NET 1.0 and 1.1 Professional 1 June 22nd, 2007 06:43 AM
Multiple file upload problem suchita_sindhu .NET Framework 1.x 0 September 8th, 2006 03:06 AM
multiple file upload errors Laurie PHP How-To 0 August 15th, 2004 11:00 PM
How to create a sequential order number? evilandy Access ASP 2 September 24th, 2003 12:06 AM
multiple and non sequential update blues.... Chris Hall Classic ASP Databases 0 August 3rd, 2003 08:10 PM

All times are GMT -4. The time now is 07:36 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.