--- Rich Gray <rich at f1central.net> wrote: > Tom > > IIRC $result will still be true if the select returns no rows. > It'll only be > false if the query is malformed. > You need to check (mysql_num_rows($result) > 0) Thank you Rich, that was indeed perfect! Tom ===== var me = tom.pixelmech.webDeveloper(); http://www.pixelmech.com/ http://www.maccaws.com/ [Making A Commercial Case for Adopting Web Standards] __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com