php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39774 mysqli_query does not report warning message
Submitted: 2006-12-08 00:08 UTC Modified: 2006-12-08 09:17 UTC
From: ecstasy2000 at gmail dot com Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.2.0 OS: Win32 / XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 + 22 = ?
Subscribe to this entry?

 
 [2006-12-08 00:08 UTC] ecstasy2000 at gmail dot com
Description:
------------
mysqli_query function does not fail with a warning message when invalid queries are sent.

Reproduce code:
---------------
error_reporting(E_ALL);
$link = mysqli_connect("localhost", "andrei.tudor", "babardeala", "test");
$result = mysqli_query($link, "SELECT * FROM Groupss");

Expected result:
----------------
I use that query but in my database there is no table called "Groupss". So there should be a warning message shown on my screen even if i don't call mysqli_error() function.

Actual result:
--------------
There is no warning message.
This happens for any wrong query string.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-08 09:17 UTC] tony2001@php.net
Expected behaviour.
This function returns TRUE on success or FALSE on failure.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 07:01:30 2024 UTC