Index: php4/pear/DB/mysql.php =================================================================== RCS file: /repository/php4/pear/DB/mysql.php,v retrieving revision 1.59 diff -u -r1.59 mysql.php --- php4/pear/DB/mysql.php 2001/06/24 19:51:19 1.59 +++ php4/pear/DB/mysql.php 2001/07/03 08:07:37 @@ -185,6 +185,21 @@ } // }}} + + /** + * Quotes a string so it can be safely used within string delimiters + * in a query. + * + * @param $string the input string to quote + * + * @return string the quoted string + */ + + function quoteString($string) + { + return mysql_escape_string($string); + } + // {{{ fetchRow() /**