Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はphpでadodbを使用しています。データベースにhtmlを挿入する必要があり、データベースに挿入する前に引用符をエスケープするための最良の方法を知る必要がありますか?pg_escape_string()を使用してみましたが、まだ挿入されていないようです。
これを行うための最良の方法は何ですか?
最良の方法は、パラメーター化されたクエリを使用することです。開始するには、こちらをご覧ください。
$conn = &ADONewConnection('access'); $var = $conn->qstr("Clean");