First of all, let’s take a look at the picture. I explained in advance that this is TP2.0, so the writing method is in the manual I took the screenshot below. It should be correct
Several fucking questions
1: The data from POST can be printed. Is it because the form can be submitted correctly?
2: I use the add method, but it cannot be inserted. Why? I printed the statement and the statement is like this! ! !
Why? I inserted it exactly according to the manual, and the screenshot of the manual is also above
3: The inserted data only has the auto-incremented id and the sort which defaults to 0int type, and nothing else can be entered into the database
I can only add it through this method. The problem is that this is not the way. It is troublesome to verify. I just want to do it through normal create
Seeking advice from experts! ! !