0
你好IM,看看這個:簡單的SQL不會工作有一點問題的
SELECT id, activate_key FROM accounts
WHERE id = $accNum
AND password = '$password' AND activate_key = NULL
// Success! the id and password matched and the activate_key field is null
這是我的登錄。 只要我添加AND activate_key = NULL
你不能登錄的任何賬戶,即使activate_key字段爲NULL。
很抱歉的標題,因爲我不是一個SQL大師我不能想象一個更好的標題的解釋我的問題
而且不應[存儲明文密碼](http://stackoverflow.com/questions/1193697/storing-password-在的數據庫,在純文本-VS-客戶的需求)。 – awm