Re: [PHP] How to get error context

2008-03-17 Thread Zoltán Németh
2008. 03. 14, péntek keltezéssel 10.03-kor It Maq ezt írta: > Here is the error message captured by my error > handling function: > > mysql_connect() [function.mysql-connect]: Access > denied for user 'admin'@'localhost' (using password: > YES) > > i put a wrong password and username the manual

Re: [PHP] How to get error context

2008-03-14 Thread It Maq
Here is the error message captured by my error handling function: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'localhost' (using password: YES) i put a wrong password and username --- Zoltán Németh <[EMAIL PROTECTED]> wrote: > 2008. 03. 14, péntek keltezéssel 07.40-k

Re: [PHP] How to get error context

2008-03-14 Thread Zoltán Németh
2008. 03. 14, péntek keltezéssel 07.40-kor It Maq ezt írta: > For example "mysql_connect" reprted automatically the > error but in the manual > http://us3.php.net/manual/en/function.mysql-connect.php > all they give as information is the return: "Returns > a MySQL link identifier on success, or FA

Re: [PHP] How to get error context

2008-03-14 Thread It Maq
For example "mysql_connect" reprted automatically the error but in the manual http://us3.php.net/manual/en/function.mysql-connect.php all they give as information is the return: "Returns a MySQL link identifier on success, or FALSE on failure.", where can i see if it throws an error, and when you

Re: [PHP] How to get error context

2008-03-14 Thread Zoltán Németh
2008. 03. 14, péntek keltezéssel 07.20-kor It Maq ezt írta: > So i'm wondering if there are some rules > that can help me know if an error will be reported > automatically or not. there is no general rule for that. you have to check the manual for each function, some of them just returns false on

Re: [PHP] How to get error context

2008-03-14 Thread It Maq
Hi, I maid the modifications you suggested. For the error context when i display it, it gives a lot of information, but not easy to understand how the array is structured. If somebody knows about a site explaining how to access the context it would be great. I also modified the error reporting to

Re: [PHP] How to get error context

2008-03-13 Thread Jim Lucas
It Maq wrote: Hi, i need help because I'm unable to retrieve error's context. Below is the code that is working perfectly except the context that is not displayed: try doing a print_r($errcontext) here and see what you get? maybe the zero index does not exist. $