You are here: Re: counting total in/after while loop « PHP Programming Language « IT news, forums, messages
Re: counting total in/after while loop

Posted by Michael Fesser on 03/01/06 16:50

..oO(Ja NE)

>I would like to see how many pictures have "lost" their albums - I have
>table "album" with some id, I have table "photo" with pict's id and
>album's id so I can know where the picture belong, but sometimes some
>users delete their album form database without moving pictures to
>different (existing) album.

With FOREIGN KEY constraints such inconsistencies could be prevented.
The database could reject any DELETE attempt as long as the album is not
empty. Or it could silently delete the images as well.

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация