When I migrates from 4 to 5 took me a long day to find the solution.
The way to use it without problems
In php4:
<?php
while (odbc_fetch_row($stringsql)) {
// ...
}
?>
In php5:
<?php
odbc_fetch_row($stringsql, 0);
while (odbc_fetch_row($stringsql)) {
// ...
}
?>
Good luck