Hi,
I'm running a LAMP server and I want to access with ODBC to a MSSQL Server7. The connection works, but I have problem with executing a SELECT statement. I tried odbc_do , odbc_exec and odbc_execute but the odbc_result_all function always says no rows found.
If I do an insert, update or delete the database is changed. So the connection is OK.
My code:
...
$querry="SELECT * FROM test";
if($result=odbc_do($conn_id, $querry))
{
odbc_result_all($result);
echo "freeing result";
odbc_free_result($result);
}
...
Does anyone know where the error is?
Christof