graham23s Posted November 18, 2007 Share Posted November 18, 2007 Hi Guys, been racking the old brains to see what would be the best way to do this (i know how to code it) it's just setting up the tables in mysql, i have a `users` row which contains all the usual stuff id,username,e-mail etc, the users can upload a main profile pic which i store in the `users` table but when it comes to a gallery of maybe 10+ more photos i'm not sure the best way to set it up. any advice would be great cheers Graham Quote Link to comment Share on other sites More sharing options...
npsari Posted November 18, 2007 Share Posted November 18, 2007 I am uploading all images in one folder in my website, and storing the image names in a raw called Image I am not so sure if that is correct to do are you going to upload all images in one folder or you create s eparate folder for each user Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted November 18, 2007 Share Posted November 18, 2007 Do you mean the 'users' own gallery ? If it is you can set up another table user_gallery where there will be galleryid, picture_path and userid. For the pictures you can save picture path in the table and pictures in one folder. Quote Link to comment Share on other sites More sharing options...
graham23s Posted November 18, 2007 Author Share Posted November 18, 2007 thanks guys solved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.