Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

SQL and MySQL Debugging Techniques

The most common SQL errors are caused by the following issues:

  • Unbalanced use of quotation marks or parentheses

  • Unescaped apostrophes in column values

  • Misspelling a column name, table name, or function

  • Placing a query’s clauses (WHERE, GROUP BY, ORDER BY, LIMIT) in the wrong order

    Furthermore, when using MySQL you can also run across the following:

  • Unpredictable or inappropriate query results

  • Inability to access the database

  • Difficulty starting MySQL

When creating Web applications in PHP, the best way to determine the SQL or MySQL issue at hand is to use the mysql_error() function, as introduced in Chapter 6, “Using PHP and MySQL.” In the next sequence of steps, I’ll cover another method for solving SQL and MySQL mistakes. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book