錯誤及解決方式:
1.ERROR 1064 (42000): 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
下圖有兩個錯誤,
其一:英文單引號- '內容' 應該爲- `內容` 【就是上面一排數字鍵最左邊~符號那個,切換英文輸入法即爲反單引號。】
其二:註釋 -- 巴拉巴拉 不能添加在行內!
2.php報錯-Call to undefined function imagecreatetruecolor
解決:打開php.ini配置文件,去掉 extension=gd2 前分號,取消註釋。