Thanks.

Never knew there existed (===). Silly me :)

Regards,
Karam

--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:

> Karam Chand wrote:
> > Hello,
> > 
> > mysql_query() returns non-false even if there was
> an
> > UPDATE statement and the query was successful.
> > 
> > But if I put the $result variable in
> mysql_num_rows()
> > it returns an error, $result in invalid handle. 
> > 
> > I was asking how to know that where its an UPDATE
> > statement so I dont call mysql_num_rows() at all.
> 
> I Chris said, if($result === true || $result ===
> false), no rows were 
> returned.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to