tailieunhanh - PHP HOW TO 4
PHP HOW−TO // No need to call _checkAndChangeEOF() because // the possibility of moving to the last row has // been handled by the above code $this−EOF = false; return true; } } } $this−EOF = true; return false; } // Returns: true on success, false on failure firstRow() moves // the internal row pointer of the Recordset object to the first // row and the data corresponding to the row will be retrieved | PHP HOW-TO No need to call _checkAndChangeEOF because the possibility of moving to the last row has been handled by the above code this- EOF false return true this- EOF true return false Returns true on success false on failure firstRow moves the internal row pointer of the Recordset object to the first row and the data corresponding to the row will be retrieved into the fields collection function firstRow if this- getNumOfRows 0 this- fields array this- _currentRow 0 if @mssql_data_seek this- _queryID this- _currentRow this- fields @mssql_fetch_array this- _queryID this- EOF false This is not working. True all the time if this- fields return true this- EOF true return false Returns true on success false on failure lastRow moves the internal row pointer of the Recordset object to the last row and the data corresponding to the row will be retrieved into the fields collection function lastRow if this- getNumOfRows 0 this- fields array num_of_rows this- getNumOfRows this- _tempResult @mssql_data_seek this- _queryID -- num_of_rows if this- _tempResult num_of_rows decemented at above this- _currentRow num_of_rows this- fields @mssql_fetch_array this- _queryID This is not working. True all the time if this- fields Special case for making EOF false. this- EOF false return true this- EOF true return false close only needs to be called if you are worried about using too much memory while your script is running. All associated G Microsoft SQL Server DB Wrapper Example 38 PHP HOW-TO result memory for the specified result identifier will automatically be freed function close this- _tempResult @mssql_free_result this- _queryID return this- _tempResult Returns the number of rows in a result set. Get number of rows in result function getNumOfRows return this- _numOfRows Returns the number of fields in a result set. Get number of fields in result. function getNumOfFields return this- _numOfFields Check and change the status of EOF. function _checkAndChangeEOF .
đang nạp các trang xem trước