通过php usning html表单在mysql中插入数据时查询为空错误

时间:2017-04-02 09:52:10

标签: php mysql

//这是我的PHP代码。我试图使用PHP和mysql使用post方法在html表单标记中存储数据,但它显示查询为空的错误。我刚刚开始学习php,所以可能是一个愚蠢的,但PLZ帮助我

generateIcons(60,4);

1 个答案:

答案 0 :(得分:0)

问题在于:

(Full Name, Fathers Name, Mothers          Name,DOB,Gender,Marital Status,Husbands Name,Category,Sub-Category,Nationality,Religion,Address,Mobile no,Email-ID,Exam passed, Board,Passing Year,Percentage12,Migcir,ProofDOB,Marksheet,GapCertificate)

你的列名中有空格,有些是小案,有些是大写字母。这是一个非常糟糕的数据库结构。

通过将所有列设置为小写并使用_下划线而不是空格来更改列名称,或者使用'单引号将列名括起来