错误及解决方式:
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 前分号,取消注释。