-1
イムに与えられた1は、PHP 5.4からPHPの5.4:Mysqli_real_escape_string()の2つのパラメータ、
7.1に私のWordpressのテーマを変換しようとしている。しかし...私はまだ、このエラーで何が起こっているか理解していない:
警告:mysqli_real_escape_string()は期待正確に1ライン上 /home/myhost/wp-content/themes/mytheme/functions.phpで与えられる2つの パラメータ、
$con = new mysqli('localhost', 'my_user', 'my_password', 'my_db');
function cG($name){
if(get_magic_quotes_gpc()) $_GET[$name]=stripslashes($_GET[$name]);
$name=mysqli_real_escape_string($con, $_GET[$name]);
return $name;
}
私はthisに従うことをしようとしたが、それでも私は、エラー...任意のアイデアを得ますか?ありがとうございました!
あなたは '' $ _GET [$名]のvar_dumpましたか? –
そうは思わない – hiloes