Re: Re: printing errors
| From: | Shahmat Dahlan | Date: | Thu, 04 Aug 2005 05:22:45 +0000 |
| Subject: | Re: Re: printing errors | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40028@lists.php.net to get a copy of this message | ||
both mysql_error () and mysql_errno () are suppose to "assist" you in determining the cause of problems you may encounter with your mysql-related coding.
it's not a question of knowing what php can tell you what's wrong, it's what your mysql db is telling you. you should refer to the mysql error code listing in the mysql manual.
you may want to show your code, sql stmts that you make in your code, and you might even want to indicate your table structure even, if you expect proper answer
hope wrote:
i use mysql_error() bt stil even sometimes i donnot understand the real error. is ther any other function tht wil let me know if error is regarding my syntax, parameters, database connection or something else like fetching records etc. David Robley wrote:(umeed wrote:most of the time wen dealing with mysql, i get error bt i want to exactly know wt the error is due to. how can i print specific error tht wil make it easy to knowu cn us mysql_error() n prnt ur qry as wellAnd perhaps if you write properly your questions may be better understoodCheers