Hier mal mein aktueller Code ich vermute mal du meinst SQL_CUR_USE_DRIVER als konstante oder?
<?php
$dsn="Test";
$user="sa";
$pwd="pw";
$cursor_type = SQL_CUR_USE_DRIVER;
$conn = odbc_connect($dsn,$user,$pwd,$cursor_type) or die ("Die Datenbank existiert nicht.");
$sql = 'SELECT No_ FROM Test';
$cur = odbc_exec($conn, $sql);
echo $conn . "<br>";
echo $sql . "<br>";
echo $cur . "<br>";
while(odbc_fetch_row($cur)) {
$test[]= odbc_result($cur,"No_");
}
for($h=0; $h < sizeof($test); $h++) {
echo "Nr: ". $test[$h]."<br>";
}
odbc_close_all();
?>
[/PHP]