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

  • SEARCH
  • Home
  • 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 6957581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:01:19+00:00 2026-05-27T15:01:19+00:00

Aside from writing the wrong query and not having permissions to access a table,

  • 0

Aside from writing the wrong query and not having permissions to access a table, when mysql_query returns false? Are there any other cases?

  • 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-27T15:01:20+00:00Added an answer on May 27, 2026 at 3:01 pm

    See the reference guide:

    For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning
    resultset, mysql_query() returns a resource on success, or FALSE on
    error.

    For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc,
    mysql_query() returns TRUE on success or FALSE on error.

    The returned result resource should be passed to mysql_fetch_array(),
    and other functions for dealing with result tables, to access the
    returned data.

    Use mysql_num_rows() to find out how many rows were returned for a
    SELECT statement or mysql_affected_rows() to find out how many rows
    were affected by a DELETE, INSERT, REPLACE, or UPDATE statement.

    mysql_query() will also fail and return FALSE if the user does not
    have permission to access the table(s) referenced by the query.

    http://php.net/manual/en/function.mysql-query.php

    Edit: Clarification of what those errors actually are.

    So we have list of things that can return false:

    • When a MySQL statement which returns a resultset gets an error
    • When a MySQL statement which doesn’t return anything gets an error
    • When a user does not have MySQL permission to access a table reference

    In my opinion the first 2 are the ones that are a bit diffuse. What are the possible errors? There are 59 different client errors you can get from MySQL. These are more system related errors which we can presume that php will handle and probably wrap into a smaller amount of abstract errors.

    Except for those client errors you have a set of more abstract errors which you can encounter during usage which is more related to using the actual API inside the application rather than the raw access to the MySQL server. Those are:

    • Access denied
    • Can’t connect to [local] MySQL server
    • Lost connection to MySQL server
    • Client does not support authentication protocol
    • Password Fails When Entered Interactively
    • Host ‘host_name’ is blocked
    • Too many connections
    • Out of memory
    • MySQL server has gone away
    • Packet too large
    • Communication Errors and Aborted Connections
    • The table is full
    • Can’t create/write to file
    • Commands out of sync
    • Ignoring user
    • Table ‘tbl_name’ doesn’t exist
    • Can’t initialize character set
    • Table corruption issues
    • Syntax related issues

    Here are the references of what I just said:

    • List of the client errors
    • List of the common errors dealing with the API
    • References about query related issues
    • Table related issues
    • Other issues related to known bugs
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Aside from writing custom code are there any existing features in .NET which allows
Aside from writing an alias or script, is there a shorter command for getting
Aside from DeployerFTP, are there any plugins that offer the ability to deploy a
Does anyone know if there is an easy way, aside from writing a custom
Aside from the HelloWorld Tutorial, are there any other tutorials/books available with regards to
Aside from Integer.parseInt() handling the minus sign (as documented), are there any other differences
Aside from trying perldoc <module name> individually for any CPAN module that takes my
Aside from enhanced user experience, do Ajax calls provide any significant performance benefit?
Aside from not deploying a Django project to the web site root directory, is
In writing Win32 C/C++ code, is there any advantage (e.g. performance?) in using Windows-specific

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.