Hi,
Use the odbc_num_rows() function..
$result = odbc_exec($connection, $query);
$row_count = odbc_num_rows($result);
if ($row_count == 0)
{
echo "No records found.";
}
See:
http://www.php.net/odbc_num_rows
ODBC functions:
http://www.php.net/odbc
hth,
: )
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::