【モバイル】携帯電話向け開発について語るスレat PHP
【モバイル】携帯電話向け開発について語るスレ - 暇つぶし2ch324:nobodyさん
06/09/08 19:52:19
>>323
Quote each non numeric user supplied value that is passed to the database with the database-specific string escape function (e.g. mysql_escape_string(), sql_escape_string(), etc.).
If a database-specific string escape mechanism is not available, the addslashes() and str_replace() functions may be useful (depending on database type).
See the first example. As the example shows, adding quotes to the static part of the query is not enough, making this query easily crackable.




次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch