In response to Sena's post, odbc_num_rows does not always return a row count. When executing a query on MS Access it seems to return a row count of -1.
<?php
while(odbc_num_rows($myodbcexec)){
$myarray[] = odbc_fetch_array($myodbcexec);
}
?>
Just something to watch out for when attempting to execute this code.
Miles Phillips
e-Clipse Consulting