Hi Aravind, However you have kept the user_name or user_id in session and also user_name is a unique. So you can create your folder named user_name. if (!file_exist($user_name)) { mkdir($user_name); image_upload(); } else { image_upload(); } function image_upload() { // add the image upload codehere } Thanks & Regards Udayakumar Sarangapani Sr. PHP Developer CompIndia Infotech Pvt. Ltd. Chennai. "Science is nothing but logic..." ________________________________ From: arvindsri123 <arvindsri123@xxxxxxxxx> To: php-objects@xxxxxxxxxxxxxxx Sent: Saturday, 20 December, 2008 4:53:26 AM Subject: Re: How to store Images by memeber name Hello, Thank you so much, i have got few scripts but all r do seprate part, i wanted a single script through that i can upload atleast 10 JPG images, and those images shoud store in DB as well as in new folder but folder name should be user name. I am still searching, If someone will help me with the script, i m not very expert. Thank you again for a quick and positive reply. Thanks, Avi. --- In php-objects@ yahoogroups. com, Joe Forsythe <jforsythe@. ..> wrote: > > if (!(file_exists( $directory_ name))) { > mkdir($directory_ name); > } > > Or something like that. > > If you're doing a google search on this topic, you'll want to search > for "directory", not "folder" > -- > Joe > > > On Dec 19, 2008, at 4:07 PM, arvindsri123 wrote: > > > Hi, > > > > I need a help, I have just created a image upload script in php/mysql, > > right now all the user's/member' s images storing in a common folder. > > > > I wanted to store every members images in their own folder, Like when > > i submit the image upload page, ther must be a new folder created by > > the user name and all the images must be store in his/her folder, I > > don't want to create folder manually.. > > > > If there is any confusion please ask me, I will be very thank full to > > all of you. > > > > Thanks, > > Avi > > > > > > > > > > [Non-text portions of this message have been removed] > __.._,_.___ Messages in this topic (3) Reply (via web post) | Start a new topic Messages | Links Are you looking for a PHP job? Join the PHP Professionals directory Now! http://www.phpclasses.org/professionals/ MARKETPLACE ________________________________ >From kitchen basics to easy recipes - join the Group from Kraft Foods Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe Recent Activity * 13 New MembersVisit Your Group Yahoo! Finance It's Now Personal Guides, news, advice & more. Search Ads Get new customers. List your web site in Yahoo! Search. Y! Groups blog The place to go to stay informed on Groups news! . Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/ [Non-text portions of this message have been removed]