PHP mysql_real_escape_string() 使用注意事項

023 月

PHP mysql_real_escape_string() 使用注意事項

 

在 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()。

Posted by admin  Posted on 02 3 月 
  • PHP
  • Post Comments 0