Function Database_Static_mysql_pdo->get_query_rows

Definitions

sources/database/mysql_pdo.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 object 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  object $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(object $results, string $query, int $start) : array