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

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

		$ret = array();
		if ( $res = $this->rawQuery($query) )
		{
			while($row = $this->fetch($res))
			{
				$key = $row[$index];
				unset($row[$index]);
				$ret[$key] = reset($row);
			}
			$this->free($res);
		}
		return $ret;
	}
public function getIndCol ( ) { $ args = func_get_args ( ) ; $ index = array_shift ( $ args ) ; $ query = $ this -> prepareQuery ( $ args ) ; $ ret = array ( ) ; if ( $ res = $ this -> rawQuery ( $ query ) ) { while ( $ row = $ this -> fetch ( $ res ) ) { $ key = $ row [ $ index ] ; unset ( $ row [ $ index ] ) ; $ ret [ $ key ] = reset ( $ row ) ; } $ this -> free ( $ res ) ; } return $ ret ; }
Helper function to get a dictionary-style array right out of query and optional arguments

Examples:
$data = $db->getIndCol("name", "SELECT name, id FROM cities");

@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 array contains key=value pairs out of resultset. Empty if no rows found.
Helper function to get a dictionary - style array right out of query and optional arguments