classes/database.php
/**
	 * Prepare an SQL query and return a PDO statement object
	 *
	 * @param string $sql query to run
	 * @return object
	 */
Prepare an SQL query and return a PDO statement object
@param string $sql query to run
@return object
Prepare an SQL query and return a PDO statement object @param string $sql query to run @return object
public function prepare($sql)
	{
		if($this->type == 'mysql')
		{
			$sql = str_replace('"', '`', $sql);
		}
		return $this->connection->prepare($sql);
	}
public function prepare ( $ sql ) { if ( $ this -> type == 'mysql' ) { $ sql = str_replace ( '"' , '`' , $ sql ) ; } return $ this -> connection -> prepare ( $ sql ) ; }
Prepare an SQL query and return a PDO statement object
 @param string $sql query to run
 @return object
Prepare an SQL query and return a PDO statement object @param string $sql query to run @return object
// MySQL uses an incorrect SQL identifier character (the `tick) // Get the database connection and prepare the statement