php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45342 helpful to list INSERT as a mysql_query() type not returning result set
Submitted: 2008-06-23 23:05 UTC Modified: 2008-06-24 19:01 UTC
From: sdewey at post dot harvard dot edu Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
 [2008-06-23 23:05 UTC] sdewey at post dot harvard dot edu
Description:
------------
On the manual page for mysql_query(), it would probably be helpful for some users if you updated the following sentence:

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

To include "INSERT" in the list. INSERT is one of the most common queries not producing a result set (i.e. simply returning TRUE or FALSE), and this would make things clearer to newer users wondering about the return value of mysql_query() called with such a statement.

Reproduce code:
---------------
n/a, see above

Expected result:
----------------
n/a, see above

Actual result:
--------------
n/a, see above

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-24 19:01 UTC] danbrown@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 11:00:01 2026 UTC