【モバイル】携帯電話向け開発について語るスレat PHP【モバイル】携帯電話向け開発について語るスレ - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト322:nobodyさん 06/09/08 18:41:52 4.3.0この関数は非推奨となりました。利用しないでください。代わりに mysql_real_escape_string() を利用してください。 http://jp2.php.net/manual/ja/function.mysql-escape-string.php addslashes does NOT make your input safe for use in a database query! It only escapes according to what PHP defines, not what your database driver defines. Any use of this function to escape strings for use in a database is likely an error - mysql_real_escape_string, pg_escape_string, etc, should be used depending on your underlying database as each database has different escaping requirements. In particular, MySQL wants \n, \r and \x1a escaped which addslashes does NOT do. Therefore relying on addslashes is not a good idea at all and may make your code vulnerable to security risks. I really don't see what this function is supposed to do. http://jp2.php.net/manual/ja/function.addslashes.php 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch