php-general Digest 19 Jun 2011 12:26:38 -0000 Issue 7366

Topics (messages 313606 through 313607):

Re: mysqli_query() returns NULL?
        313606 by: James Colannino

Re: Submit Using An Image Form Processing
        313607 by: tedd

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 06/18/11 13:27, Ashley Sheridan wrote:

> You'll only get an error if there was an error with the query. A query that 
> has no result is still a valid query, so won't return an error. It's quite 
> common to check the value of mysql_num_rows() before trying to use the 
> results of the query.

But in that case it would return boolean true rather than NULL, right?

James

--- End Message ---
--- Begin Message ---
At 6:34 PM -0500 6/18/11, Shawn McKenzie wrote:

Get method is for retrieval only.  It is not for anything that has a
consequence (insert, update, delete, send email, etc.).  Use only post
for those.

--
Thanks!
-Shawn


Why?

Cheers,

tedd

--
-------
http://sperling.com/

--- End Message ---

Reply via email to