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

From: Date: Sun, 12 Dec 1999 06:31:19 +0000
Subject: Re: [PHP4BETA] Counting rows equal to something in MySQL
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7806@lists.php.net to get a copy of this message
$query = "SELECT count(*) FROM $sqltable where some_column = $something_to_equal"; $result = mysql_query($query); $how_many = mysql_result( $result, 0, 0);

« previous php.version4 (#7806) next »