Re: Still trying to figure this out
| From: | Warren Vanichuk | Date: | Thu, 03 Aug 2000 21:14:47 +0000 |
| Subject: | Re: Still trying to figure this out | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10033@lists.php.net to get a copy of this message | ||
> mysql> SELECT count(*) from database where column1="Yes";
> +----------+
> | count(*) |
> +----------+
> | 77 |
> +----------+
>
> But if I do this:
>
> $result1 = mysql_query ("SELECT count(*) from database where
> column1='Yes'");
$results = mysql_fetchrow( $result1 );
print( $reults[0] );
$result1 is only the query handle, not the data you requested. You then
need to operate on the query handle to produce anything useful.
Sincerely, Warren