note 15294 added to function.mysql-num-rows

From: Date: Tue, 04 Sep 2001 22:39:49 +0000
Subject: note 15294 added to function.mysql-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-17621@lists.php.net to get a copy of this message
I'm trying to get the number of rows from a select statement... but if no rows are returned, then nothing is passed into my variable. How can I make my variable 0 if no rows are returned? http://www.php.net/manual/en/function.mysql-num-rows.php

« previous php.notes (#17621) next »