in reply to CGI-SQL-HTML-Display "no image"
You can have an extra (boolean) field in your database which indicates whether or not there is a photo available.
It will save you the time-consuming task of checking through the file-system whether a file is available.The "dark side" of this solution is of course that you must keep you data-base updated. There is no gain without pain.
Or you can have a "default image" on the file system for each entry, which shows something like "no picture available yet" and when the "real" photo is put in the file-system it will automatically overwrite the default image.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI-SQL-HTML-Display "no image"
by WhiteBird (Hermit) on May 24, 2003 at 15:05 UTC | |
by markjugg (Curate) on May 25, 2003 at 00:45 UTC | |
by WhiteBird (Hermit) on May 25, 2003 at 01:09 UTC | |
by markjugg (Curate) on May 25, 2003 at 03:04 UTC |