My way around this is using two fallback stages: for one you test mysql_num_rows() after performing the query. If that's 0, use a default image placed in the database beforehand. If that also returns a null mysql_num_rows() then echo an image (probably the same default) from a known location in the filesystem.
HTH Bogdan Rodrigo Peres wrote: > Hi list, > > I have some images stored in a blob in mysql. I've made this code to output > them to html, but the problem is if there's no image at a given id the page > tooks a long time to load and display the "broken image", there's a way to > avoid this, I mean, there's a way to print a message or another image if > there's none in mysql ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]