NYCPHP Meetup

NYPHP.org

[nycphp-talk] question re DB_Error (PEAR)

Mitch Pirtle mitchy at spacemonkeylabs.com
Fri Mar 19 16:48:32 EST 2004


David Mintz wrote:
> On Fri, 19 Mar 2004, Mitch Pirtle wrote:
> 
> Nuh uh. That's why I said "something *like* parse it out of the string
> returned by..." [emphasis added] (-: The string returned by getDebugInfo()
> is identical (well ok, I mean == ) to that returned by getUserInfo() in
> the code I'm playing with right now.
> 
> The point being, it looks like you gotta use something like mysql_errno()
> (in which case, so much for your abstraction) or parse it yourself.

Whups, then I misunderstood (: My bad.

You are trying to get the exact error as reported by the database, 
correct?  And if so, is the purpose for error reporting or somesuch?

-- Mitch



More information about the talk mailing list