src/db/DbConnector.php
public function fetchRows($sql, $arguments = array())
    {
        $ret = array();
        $result = $this->_exec($sql, $arguments);

        // fetches all rows
        while ($row = $result->fetch_array()) {
            array_push($ret, $row);
        }
        $result->close();

        return $ret;
    }
public function fetchRows($sql, $arguments = array())
    {
        $ret = array();
        $result = $this->_exec($sql, $arguments);

        // fetches all rows
        while ($row = $result->fetch_array()) {
            array_push($ret, $row);
        }
        $result->close();

        return $ret;
    }
public function fetchRows ( $ sql , $ arguments = array ( ) ) { $ ret = array ( ) ; $ result = $ this -> _exec ( $ sql , $ arguments ) ; // fetches all rows while ( $ row = $ result -> fetch_array ( ) ) { array_push ( $ ret , $ row ) ; } $ result -> close ( ) ; return $ ret ; }
Executes a DDL statement and returns all rows.

This function executes a DDL statement (select, show, describe, etc...) and returns an
associative array. I recommend to use DbConnector::query() instead.

@param string       $sql       SQL statement
@param scalar|array $arguments List of arguments (not required)

@return array
Executes a DDL statement and returns all rows .