Re: [PHP4BETA] Counting rows equal to something in MySQL

From: Date: Sun, 12 Dec 1999 06:40:08 +0000
Subject: Re: [PHP4BETA] Counting rows equal to something in MySQL
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-7807@lists.php.net to get a copy of this message
Neo wrote: > $query = "SELECT count(*) FROM $sqltable where some_column = > $something_to_equal"; > $result = mysql_query($query); > > $how_many = mysql_result( $result, 0, 0); > What is $how_many = mysql_result( $result, 0, 0);? Is that the same as $how_many=mysql_num_rows($result);? Michael > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net

« previous php.version4 (#7807) next »