Php/MySQLi data Submission error. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Php/MySQLi data Submission error.

When the user enters the data in the form and submits it, it get submitted, but my error handlers still display that smothing went wrong, when I check the database, their are no id numbers (it submits 0 instead). What could be the problem & solution for this?

4th Apr 2020, 4:02 PM
LUTANGU CRISPINE
LUTANGU CRISPINE - avatar
7 Answers
+ 3
I think there maybe a problem with connection with database or check your sql query. If there are syntactical errors in sql query then it gives such kind of problem.
8th Apr 2020, 1:58 AM
Asha Malla
Asha Malla - avatar
+ 2
Then is the problem solved then?
9th Apr 2020, 10:40 AM
Asha Malla
Asha Malla - avatar
+ 2
Good to hear that 🙂🙂
9th Apr 2020, 10:43 AM
Asha Malla
Asha Malla - avatar
+ 2
It's my pleasure to help you. 🙂🙂
9th Apr 2020, 10:47 AM
Asha Malla
Asha Malla - avatar
0
Asha Malla - Thanks, I have noticed the problem just as you stated, there were some errors with the CREATE TABLE commands.
9th Apr 2020, 10:39 AM
LUTANGU CRISPINE
LUTANGU CRISPINE - avatar
0
Yes, it's working perfectly now.
9th Apr 2020, 10:42 AM
LUTANGU CRISPINE
LUTANGU CRISPINE - avatar
0
Yeah, thanks for support.
9th Apr 2020, 10:45 AM
LUTANGU CRISPINE
LUTANGU CRISPINE - avatar