Search the web
Sign In
New User? Sign Up
php-objects · Discussions about Object Oriented Programming in PHP
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Image upload   Message List  
Reply | Forward Message #8855 of 9235 |
Re: Image upload

Why do you want a one column for one image.
can you not have it like that?

Image table

image_id | image_name | path | status/inuse | userid |
1 | image 1 | images/uploaded/| 1 | registered_user_id

image_id can be auto increment.

hope it what you want.



--- In php-objects@yahoogroups.com, "arvindsri123" <arvindsri123@...> wrote:
>
> Hi,
>
> Thanks for reply, If i am using separate table for images, how i can create n
number of columns in php through froms when user will submit?
>
> Thanks,
> Arshi
>
>
> --- In php-objects@yahoogroups.com, Richard Damon <richard@> wrote:
> >
> > On Sat, 11 Jul 2009 16:50:48 -0000, "arvindsri123"
> > <arvindsri123@> wrote:
> >
> > >Hi,
> > >
> > >Thanks for reply...
> > >
> > >When i will make column in table for images, normally i will make 3 column
for 3 images but when i will add more images field in forms how i can create new
column for new images, is there anything that column can create automatically
when i upload more than 3 images? b-cz user can upload any number of images.
> > >
> > >I am giving link again here
> > >http://www.wowapic.com/add_image.php
> > >
> > >please click on "Upload more pictures? [Click here]"
> > >
> > >Thanks,
> > >Arshi
> > >
> >
> > Having a fixed number of fields to handle a varialble number of
> > entries shows a problem with database normalization.
> >
> > Instead of having n columns for images, you should have a seperate
> > table for images, with each record of images linking back with the
> > primary key of the original record.
> >
> > Richard Damon
> >
>





Tue Jul 14, 2009 2:01 am

thihaz_23yuki
Offline Offline
Send Email Send Email

Forward
Message #8855 of 9235 |
Expand Messages Author Sort by Date

Hi All, I wanted to make a image upload page with a button, when u click on Image upload button it will add a new field for add more image same time, please...
arvindsri123
Offline Send Email
Jul 11, 2009
11:44 am

open the source code, and you'll see < Upload more pictures? [Click here] > button trigger to a javascript function named fnAddLeft(). this function <...
Muhammad Rashid Babsail
el_marsheil
Offline Send Email
Jul 11, 2009
11:58 am

Hi, Thanks for reply... When i will make column in table for images, normally i will make 3 column for 3 images but when i will add more images field in forms...
arvindsri123
Offline Send Email
Jul 11, 2009
4:52 pm

On Sat, 11 Jul 2009 16:50:48 -0000, "arvindsri123" ... Having a fixed number of fields to handle a varialble number of entries shows a problem with database...
Richard Damon
richard_smit...
Offline Send Email
Jul 11, 2009
4:58 pm

Hi, Thanks for reply, If i am using separate table for images, how i can create n number of columns in php through froms when user will submit? Thanks, Arshi...
arvindsri123
Offline Send Email
Jul 11, 2009
5:01 pm

Why do you want a one column for one image. can you not have it like that? Image table image_id | image_name | path | status/inuse | userid | 1 | image 1 |...
thihaz_23yuki
Offline Send Email
Jul 14, 2009
10:10 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help