I agree that the page displayed with incorrect data is not good.
I dont want to display the whole page if any errors occured but 
inspite of that i would like to show a separate page with a message 
so that the user can come back after some hours.


--- In [email protected], Pete <[EMAIL PROTECTED]> wrote:
> In message <[EMAIL PROTECTED]>, Javed Ahmed <[EMAIL PROTECTED]>
> writes
> >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.
> 
> I am not sure that I agree with your logic, as I believe that, if 
there
> is an error, *something* should happen.
> 
> What do you want to do? Just attempt to display the rest of the 
page,
> ignoring the fact that the data is incorrect?
> 
> For example, die() would stop anything else from appearing on the 
page
> mysql_select_db("database") or die('');
> 
> -- 
> Pete Clark
> 
> http://www.hotcosta.com
> http://www.spanishholidaybookings.com




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/
 


Reply via email to