note 80296 added to function.mssql-query

From: Date: Tue, 08 Jan 2008 22:09:55 +0000
Subject: note 80296 added to function.mssql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-134953@lists.php.net to get a copy of this message
CLARIFICATION: The note in the explanation of this function specifies "If the query returns multiple results then it is necessary to fetch all results by mssql_next_result() or free the results by mssql_free_result() before executing next query." What seems to be implied is that data will not return. When using mssql_query() you must use mssql_free_result() or some data might not be returned. In my case only the FIRST ROW of data was not returned upon second use of mssql_fetch_array. All the other thousands of rows of data where returned. Again, us mssql_free_result() Prior to using any other query function accept mssql_next_result() even when the query is the same query previously ran This may not be needed for those of you who actually pay attention to the Notes (I thought I did but missed this anyway) ---- Server IP: 208.69.120.35 Probable Submitter: 63.241.190.32 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-query.php Edit -- https://master.php.net/note/edit/80296 Del: integrated -- https://master.php.net/note/delete/80296/integrated Del: useless -- https://master.php.net/note/delete/80296/useless Del: bad code -- https://master.php.net/note/delete/80296/bad+code Del: spam -- https://master.php.net/note/delete/80296/spam Del: non-english -- https://master.php.net/note/delete/80296/non-english Del: in docs -- https://master.php.net/note/delete/80296/in+docs Del: other reasons-- https://master.php.net/note/delete/80296 Reject -- https://master.php.net/note/reject/80296 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134953) next »