Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2006, 06:05 PM
Registered User
 
Join Date: Jan 2006
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!





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





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