mysqli_query() returns NULL?

From: Date: Fri, 17 Jun 2011 20:40:24 +0000
Subject: mysqli_query() returns NULL?
Groups: php.general 
Request: Send a blank email to php-general+get-313594@lists.php.net to get a copy of this message
Hey everyone, After reading the documentation for mysqli_query(), I was lead to believe that on any error it would return false. However, through a stupid mistake, I discovered that when I specify an invalid value for the database link identifier (in my case, I accidentally passed an integer), instead of false I get a return value of NULL. Does anyone know why? Thanks! James

« previous php.general (#313594) next »