string escapeSimple (string $str)
string escapeSimple
Escape a string according to the current DBMS's standards.
the input to be escaped
string - the escaped string
This function can not be called statically.
Function available since: Release 1.6.0
Example 33-1. Using escapeSimple()
<?php // Once you have a valid DB object named $db... $name = "all's well"; $sql = "SELECT * FROM clients WHERE name = '" . $db->escapeSimple($name) . "'"; $res =& $db->query($sql); ?>
quoteIdentifier(), quoteSmart()