所以......我收到了:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = '48f9f4a3f5e10c63804400f320f46e26'' at line 1
所以我在网页上反映给自己,上面写着:
SELECT * FROM email_confirm WHERE email = 'censored@gmail.com' AND key = '48f9f4a3f5e10c63804400f320f46e26'
我没有看到这个问题。
MySQL 版本是 5.1.65-cll
答:KEY是mysql中的保留字。需要backticks
!