samples/PhotoAlbum/lib/rb.php
public function GetCol($sql, $aValues=array()) {
		$rows = $this->GetAll($sql,$aValues);
		$cols = array();
		if ($rows && is_array($rows) && count($rows)>0) {
			foreach ($rows as $row) {
				$cols[] = array_shift($row);
			}
		}
		return $cols;
	}
public function GetCol($sql, $aValues=array()) {
		$rows = $this->GetAll($sql,$aValues);
		$cols = array();
		if ($rows && is_array($rows) && count($rows)>0) {
			foreach ($rows as $row) {
				$cols[] = array_shift($row);
			}
		}
		return $cols;
	}
public function GetCol ( $ sql , $ aValues = array ( ) ) { $ rows = $ this -> GetAll ( $ sql , $ aValues ) ; $ cols = array ( ) ; if ( $ rows && is_array ( $ rows ) && count ( $ rows ) > 0 ) { foreach ( $ rows as $ row ) { $ cols [ ] = array_shift ( $ row ) ; } } return $ cols ; }
Runs a query and fetches results as a column.

@param  string $sql SQL Code to execute

@return array	$results Resultset
Runs a query and fetches results as a column .