Hi Pete, For me, I do all my scripting before the <HTML> tag and do not echo or print anything before the <HTML> tag either. This allows me to test my connections and calculations before headers are send to the users browser. Which allows me to do a header redirect in the event of an error so i can display a nice error message to the user. You can have a master error page with case or if statements that test for your error value and display the nice error message. If all goes well I echo and print what I need in the <HTML> section of the page.
Mike -- Mike Brandonisio * Web Hosting Tech One Illustration * Database Applications tel (630) 759-9283 * e-Commerce [EMAIL PROTECTED] * http://www.jikometrix.net JIKOmetrix - Reliable web hosting On Jun 2, 2005, at 11:40 AM, Javed Ahmed wrote: > hello, > > How to prevent displaying mysql errors & warnings on the page.This > error arosed due to empty resultset. Well I want to trap the errors & > warnings and prevent it to display on the page. Kindly guide me. > > ----- > Warning: mysql_result() [function.mysql-result]: Unable to jump to row > 0 on MySQL result index 14 in c:\www\ecards\footer.php on line 8 > ----- > > Pages never looks good with errors displayed on it. > > thanks, > Javed Ahmed. > > > > > Community email addresses: > Post message: [email protected] > Subscribe: [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > List owner: [EMAIL PROTECTED] > > Shortcut URL to this page: > http://groups.yahoo.com/group/php-list > Yahoo! Groups Links > > > > > > > > > > Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
