Voting

: max(three, two)?
(Example: nine)

The Note You're Voting On

walt at brookhouse dot co dot uk
14 years ago
The easy way to count the rows in an odbc resultset where the driver returns -1 is to let SQL do the work:

<?php

$conn
= odbc_connect("dsn", "", "");
$rs = odbc_exec($conn, "SELECT Count(*) AS counter FROM tablename WHERE fieldname='" . $value . "'");
$arr = odbc_fetch_array($rs);
echo
$arr['counter'];

?>

<< Back to user notes page

To Top