Function Database_Static_sqlserver->get_query_rows
Definitions
sources/database/sqlserver.php
- Get the rows returned from a SELECT query.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$results | resource | No | No | required parameter | N/A | N/A | The query result pointer |
$query | string | No | No | required parameter | N/A | N/A | The complete SQL query (useful for debugging) |
$start | integer | No | No | required parameter | N/A | N/A | Where to start reading from |
Returns
- A list of row maps
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the rows returned from a SELECT query.
*
* @param resource $results The query result pointer
* @param string $query The complete SQL query (useful for debugging)
* @param integer $start Where to start reading from
* @return array A list of row maps
*/
protected function get_query_rows($results, string $query, int $start) : array
* Get the rows returned from a SELECT query.
*
* @param resource $results The query result pointer
* @param string $query The complete SQL query (useful for debugging)
* @param integer $start Where to start reading from
* @return array A list of row maps
*/
protected function get_query_rows($results, string $query, int $start) : array