src/Helpers/PdoHelper.php
function pdo_query_select($query, $values = NULL)
	{
		if ( !is_null($values) && !is_array($values) )
			$values = array($values);
		
		$st = $this->prepare($query);
		$st->execute($values);
		
		return $st;
	}
function pdo_query_select($query, $values = NULL)
	{
		if ( !is_null($values) && !is_array($values) )
			$values = array($values);
		
		$st = $this->prepare($query);
		$st->execute($values);
		
		return $st;
	}
function pdo_query_select ( $ query , $ values = NULL ) { if ( ! is_null ( $ values ) && ! is_array ( $ values ) ) $ values = array ( $ values ) ; $ st = $ this -> prepare ( $ query ) ; $ st -> execute ( $ values ) ; return $ st ; }
Helper query method for a SQL SELECT request

@param string $query The SQL query
@param string[] $values An array of parameters for the query (? and :xxx placeholders concrete values)
@return \PDOStatement A PDOStatement object with rows to fetch
@throws \PDOException If an error occured, a exception is thrown
Helper query method for a SQL SELECT request