mssql_field_seek Seeks to the specified field offset &reftitle.description; boolmssql_field_seek resourceresult intfield_offset Seeks to the specified field offset. If the next call to mssql_fetch_field won't include a field offset, this field would be returned. &reftitle.parameters; result The result resource that is being evaluated. This result comes from a call to mssql_query. field_offset The field offset, starts at 0. &reftitle.returnvalues; &return.success; &reftitle.examples; Using <function>mssql_field_seek</function> on the example for <function>mssql_fetch_field</function> Table structure for \'persons\''; echo ''; // Table header echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; // Dump all fields echo ''; for($i = 0; $i < mssql_num_fields($query); ++$i) { // Fetch the field information, notice the // field_offset parameter is not set. See // the mssql_field_seek call below $field = mssql_fetch_field($query); // Print the row echo ''; echo ''; echo ''; echo ''; echo ''; // Move the internal seek pointer to the next // row in the result set mssql_field_seek($query, $i + 1); } echo ''; echo '
Field nameData typeMax length
' . $field->name . '' . strtoupper($field->type) . '' . $field->max_length . '
'; // Free the query result mssql_free_result($query); ?> ]]>
&reftitle.seealso; mssql_fetch_field