$sql = 'SELECT COUNT(id) AS count FROM users';
$odbcResult = OdbcExec($sql);
@odbc_fetch_row($odbcResult);
$count = @odbc_result($odbcResult, 'count');
or an index field other than id. Its a little faster than COUNT (*), but the counting method is the way to go. If you need to do something with the results, method 2 is faster, but you just need to assume that this is the one you want.
-edit- . , , ( - )