previousDB_common::dropSequence() (Previous) (Next) DB_common::execute()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

DB_common::escapeSimple()

DB_common::escapeSimple() – Escapes a string according to the current DBMS's standards

Synopsis

string escapeSimple ( string $str )

Description

Escape a string according to the current DBMS's standards.

Parameter

string $str

the input to be escaped

Return value

string - the escaped string

Note

This function can not be called statically.

Function available since: Release 1.6.0

Example

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);
?>
previousDB_common::dropSequence() (Previous) (Next) DB_common::execute()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.