I'm crossing over from ColdFusion and I use a database to deliver content based on "pageName". I would like to test for page name and if it doesn't exist, reload the default page content. I find my sites work until I type a url string that doesn't exist in the database, then I get sql errors on the page for navigation results because "parentID is "null". Its so easy in ColdFusion but I just don't get it here... ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> 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/