我使用PHP 5.3版,並試圖在我的代碼使用mysql_real_escape_string($unescaped_string)
,但我得到的錯誤:mysql_real_escape_string未定義
Fatal error: Call to undefined function mysql_real_escape_string()
in /var/www/engine/database.php on line 38
我仍然可以連接到數據庫但是。爲什麼不可用?
我正在使用PHP版本5.3。
請告訴我們你的代碼 – GBD
嘗試函數mysql_escape_string()來代替 – jtheman
@jtheman你爲什麼要更換提示功能更強大的(即需要服務器配置到賬戶),更糟的功能(只是簡單的字符串替換)? – Vyktor