Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7945601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:54:55+00:00 2026-06-04T00:54:55+00:00

I used PDO::errorInfo to fetch extended error information. This does return an array which

  • 0

I used PDO::errorInfo to fetch extended error information. This does return an array which includes Driver-specific error code.

On my mind, I am planning to get the specific returned driver error code ([1] in array return)then associate it with my own custom error description. What matters me is that I can’t seem to have a list of all the driver specific error codes on this. Any ideas?

MySQL version 5.5.21, InnoDB engine.

Sample of errorInfo() returns:

Array
(
  [0] => 23000
  [1] => 1452
  [2] => Cannot add or update a child row; a foreign key constraint fails...
)
Array
(
  [0] => 23000
  [1] => 1062
  [2] => Duplicate entry 'Ovjsuy2' for key 'column_name'
)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:54:56+00:00Added an answer on June 4, 2026 at 12:54 am

    By driver specific errors, they mean errors specific to the database you’re using, like MySQL.

    Go to the documentation for your specific database and look it up there.

    For MySQL you can find it here: http://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does some PDO::PARAM_??? exist which can be used for dates or timestamps? Sample code:
Which is the better alternative? I've noticed PDO let's you return as an array
I have a statement being used with PDO which is as follows: $stmt =
I've used to use something like this with the regular PHP's PDO: $data =
I have a standardized sequence of code which I used to display topic information
I keep getting this issue with PDO, where this error crops up in my
I got an array of 650 rows. Inserting this using PDO takes between 10-15
I am working on an database class based on pdo, the database used is
How do I use PDO FetchObject results with the $this variable? Have a page
Where and when do you use the quote method in PDO? I'm asking this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.