mssql_fetch_assoc
Returns an associative array of the current row in the result
&warn.removed.function.7-0-0.alternatives;
PDOStatement::fetch
sqlsrv_fetch_array
odbc_fetch_array
&reftitle.description;
arraymssql_fetch_assoc
resourceresult_id
Returns an associative array that corresponds to the fetched row and moves
the internal data pointer ahead. mssql_fetch_assoc is
equivalent to calling mssql_fetch_array with
MSSQL_ASSOC for the optional second parameter.
&reftitle.parameters;
result_id
The result resource that is being evaluated. This result comes from a
call to mssql_query.
&reftitle.returnvalues;
Returns an associative array that corresponds to the fetched row, or
&false; if there are no more rows.
&reftitle.examples;
mssql_fetch_assoc example
';
while ($row = mssql_fetch_assoc($query)) {
echo '' . $row['name'] . ' (' . $row['username'] . ')';
}
echo '';
}
// Free the query result
mssql_free_result($query);
?>
]]>