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

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

DB_common::escapeSimple()

DB_common::escapeSimple() – 現在の DBMS の規則に基づいて文字列をエスケープする

Synopsis

string escapeSimple ( string $str )

Description

現在の DBMS の規則に基づいて文字列をエスケープします。

Parameter

string $str

エスケープされる入力文字列。

Return value

string - エスケープされた文字列を返します。

Note

This function can not be called statically.

リリース 1.6.0 以降で使用可能です。

Example

escapeSimple() の使用法

<?php
// $db という名前の 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, 21 Jun 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.