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.
我正在使用 adodb 和 php。我需要将 html 插入到我的数据库中,并且需要知道在将其插入数据库之前转义引号的最佳方法?我尝试使用 pg_escape_string() 但它似乎仍然没有插入。
最好的方法是什么?
最好的方法是使用参数化查询。请参阅此处开始:
$conn = &ADONewConnection('access'); $var = $conn->qstr("Clean");