クラスに次の静的メソッドがあります。
public static function GETSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""){}
このメソッド内には、次の指示があります。
if(function_exists("mysql_real_escape_string")){
$theValue = mysql_real_escape_string($theValue);
echo "a: " . $theValue;
} else {
$theValue = mysql_escape_string($theValue);
echo "b: " . $theValue;
}
このプログラムを実行すると、画面に「a:」が出力されます。これは、$theValue が価値を失ったことを意味します。
私が間違っているのは何ですか?