I'd create an images table with user_id field (User hasMany Image;
Image belongsTo User). Each image would be a separate record. In the
controller, have a class var $totalAllowedImages (or whatever), find
the number of images belonging to this user and allow however many
more until $totalAllowedImages to be uploaded.

On Wed, Sep 16, 2009 at 6:09 PM, CoolCourt <[email protected]> wrote:
>
> Hello I was designing my  database and i am having trouble figuring
> out the logic behind my galleries table.
>
> I want the user to be able to upload around 5 images (each image
> having a few fields description & things like that)
>
> my question is do i create extra fields to accomodate those 5 images
> or how would i go about doing that?
>
> Thanks for any help links or resources.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to