在 DBMS 為 MySQL 時,要留意 mysql_real_escape_string() 的使用時機,
要先確保產生 DB 連線資源後,才能正確使用,不然可能會產生空值。
mysql_real_escape_string()
http://www.php.net/manual/en/function.mysql-real-escape-string.php
DS PHP 函式庫中,與此相關的函式有 3 個:
1. functions.php 中的 sqlStr()。
2. Request 函式庫中的 quote()。
3. Searcher 函式庫中的 getSQL()。
相關文章 Related posts:


