note 67252 deleted from class.com by betz
| From: | betz@php.net | Date: | Tue, 06 Jun 2006 06:54:16 +0000 |
| Subject: | note 67252 deleted from class.com by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-113346@lists.php.net to get a copy of this message | ||
Note Submitter: predhtz
----
i try to count record from MSSQL 2000 database table
i use this command....
<?php
...
$total = $conn->Execute("SELECT COUNT(id) as num FROM sometable");
$total_result = $total->Fields->Count();
echo $total_result;
...
?>
its always result 1 even there is more than 1 records in the table....
please help me...