public function getInd()
	{
		$args  = func_get_args();
		$index = array_shift($args);
		$query = $this->prepareQuery($args);

		$ret = array();
		if ( $res = $this->rawQuery($query) )
		{
			while($row = $this->fetch($res))
			{
				$ret[$row[$index]] = $row;
			}
			$this->free($res);
		}
		return $ret;
	}
public function getInd()
	{
		$args  = func_get_args();
		$index = array_shift($args);
		$query = $this->prepareQuery($args);

		$ret = array();
		if ( $res = $this->rawQuery($query) )
		{
			while($row = $this->fetch($res))
			{
				$ret[$row[$index]] = $row;
			}
			$this->free($res);
		}
		return $ret;
	}
public function getInd ( ) { $ args = func_get_args ( ) ; $ index = array_shift ( $ args ) ; $ query = $ this -> prepareQuery ( $ args ) ; $ ret = array ( ) ; if ( $ res = $ this -> rawQuery ( $ query ) ) { while ( $ row = $ this -> fetch ( $ res ) ) { $ ret [ $ row [ $ index ] ] = $ row ; } $ this -> free ( $ res ) ; } return $ ret ; }
Helper function to get all the rows of resultset into indexed array right out of query and optional arguments

Examples:
$data = $db->getInd("id", "SELECT * FROM table");
$data = $db->getInd("id", "SELECT * FROM table LIMIT ?i,?i", $start, $rows);

@param string $index - name of the field which value is used to index resulting array
@param string $query - an SQL query with placeholders
@param mixed  $arg,... unlimited number of arguments to match placeholders in the query
@return array - associative 2d array contains the resultset. Empty if no rows found.
Helper function to get all the rows of resultset into indexed array right out of query and optional arguments