thanks... any idea how to solve this problem with values already in the db? I mean, the problem has been discovered at run-time ... On Wed, 23 Feb 2005 09:19:00 -0000, Ken <kensoft67@xxxxxxxxx> wrote: > > > --- In php-objects@xxxxxxxxxxxxxxx, Oreste Attanasio <attanasio@xxxx> > wrote: > > hi all, > > I have a online catalogue of products. Each product can have one or > > more photos. I've stored the products records in one mysql table and > > the pictures in another one linked by a "product_id" foreign key. > The > > problem is that if the user uploads photos with same filename, the > > photos table gets inconsistent because there might be different > > products with photos, which have the same filename. Any ideas how I > > could solve this issue? I hope it is clear enough. > > thanks in advance > > -- > > Oreste Attanasio > > oreste@xxxx > > attanasio@xxxx > > The answer to this can be found on my board at chillyhack.com. Go to > the PHP forum. > > PHP Data object relational mapping generator - http://www.meta-language.net/ > Yahoo! Groups Links > > > > > -- Oreste Attanasio oreste@xxxxxxxxxxx attanasio@xxxxxxxxx PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/