Html / Php form not adding to SQL database

后端 未结 2 1404
南笙
南笙 2021-01-25 17:52

I\'ve been working on this for hours now and including rebuilding my whole code I cannot figure out what is wrong. The HTML form is supposed to populate the patients SQL databas

2条回答
  •  不要未来只要你来
    2021-01-25 18:00

    As answered on your duplicate post (also answering here for completeness), you're checking for a "doa" field in your if statement, which doesn't exist. Your form defines "dob" twice: once for Date of Birth, and once for Date of Admission:

    
    
    
    ...
    
    
    
    

提交回复
热议问题