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 1003401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:58:30+00:00 2026-05-16T07:58:30+00:00

Mysql errors are among the most common ones you see during development, and I

  • 0

Mysql errors are among the most common ones you see during development, and I am searching for a pleasant and informative way to output them.

phpMyAdmin apparently has a decent pretty-printer for mySQL queries:

parsed query http://img706.imageshack.us/img706/2873/clipboard02a.png

However, it prints errors as simple text:

error output http://img683.imageshack.us/img683/1577/clipboard03g.png

Whereas in the latter example, the text after for the right syntax to use near could have been highlighted in the query. Like this:

alt text http://img710.imageshack.us/img710/2839/clipboard03z.png

Even though it’s a short query, you immediately see there’s a surplus comma right before the text. Doing so in much larger queries could increase readability dramatically, I’m surprised numerous searches on the subject came up with nothing.

Question in one sentence: Do you use or know of any such PHP class that displays pretty mysql errors for debugging purposes?

  • 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-05-16T07:58:30+00:00Added an answer on May 16, 2026 at 7:58 am

    I’m not sure whether this would work..

    All the error messages from mysql are rendered from this file only share/errmsg.txt

    Error message information is listed in the share/errmsg.txt file. %d and %s represent numbers and strings, respectively, that are substituted into the Message values when they are displayed.

    A sample error message would be , %s near ‘%s’ at line %d

    so if we can add something in all the error messages at errmsg.txt , then we can check for the matching string in the string returned by php mysql_error function then make them bold or italic..

    I think there is no specific class wrote before..

    You should go from scratch and make it to your own server.

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

Sidebar

Related Questions

The code I used doesn't give me any MySQL errors (which is good) Except
Due to errors of my predecessors a (MySQL) database I would like to use
Hello I am getting these LNK errors when I try to compile my MySQL
When I execute sql statements with errors, mySQL is not telling me if I
When I run my code I'm facing the next 2 errors: mysql_num_rows() expects parameter
This is my MySQL error. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for
I am receiving this mysql error and i don't know why. I am following
I want to hide all mysql error messages without using mysql_error() . Are there
The following code is executing perfectly but there is a mySQL error somewhere that
I'm developing a client management system for my workplace using PHP and MySQL. Every

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.