I want to use a cursor to go through a large table (the result of a query from an SQLServer database). I know about how to declare it and all (declare, open, fetch, close), but only when I use just SQL code. How can I create and use such a cursor in my PHP code?
For normal queries where I want a complete resultset I use something like this inside PHP tags:
$my_query = "SELECT x FROM y";
$result = mssql_query($my_query) or die("error");
I just don't see how I can do something analog, but with a cursor I can use to scroll through the query result.