. */ require_once 'creole/PreparedStatement.php'; require_once 'creole/common/PreparedStatementCommon.php'; /** * MySQLi implementation of PreparedStatement. * * @author Sebastian Bergmann * @version $Revision: 1.3 $ * @package creole.drivers.mysqli */ class MySQLiPreparedStatement extends PreparedStatementCommon implements PreparedStatement { /** * Quotes string using native MySQL function. * @param string $str * @return string */ protected function escape($str) { return mysqli_real_escape_string($this->getConnection()->getResource(), $str); } }