Index: php4/pear/DB/sybase.php =================================================================== RCS file: /repository/php4/pear/DB/sybase.php,v retrieving revision 1.18 diff -u -r1.18 sybase.php --- php4/pear/DB/sybase.php 2001/06/03 04:35:07 1.18 +++ php4/pear/DB/sybase.php 2001/07/03 08:26:21 @@ -105,6 +105,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 str_replace("'", "''", $string); + } + // {{{ fetchRow() function &fetchRow($result, $fetchmode = DB_FETCHMODE_DEFAULT) {