Edit
Newcomers just learned PHP not long
The above code is my brain supplement.
The result is that post does not have an incoming value, and the value that is filled in text after clicking submit automatically changes back to the value before the change
Ask for guidance!
Reply to discussion (solution)
if (! $myconn) {
echo "Connection Failed". Mysql_error ();
}
$result =mysql_query ($sql, $myconn);
if (! $result) {
Die (Mysql_error ());
}
Add more MySQL error judgments, so the code is not clear what is wrong.
if (! $myconn) {
echo "Connection Failed". Mysql_error ();
}
$result =mysql_query ($sql, $myconn);
if (! $result) {
Die (Mysql_error ());
}
Add more MySQL error judgments, so the code is not clear what is wrong.
Thanks for the guidance, but the problem is still unsolved.
Your form does not have a submit button, and you do not see the JS code for submission
So $_post is not going to get any data.
Your form does not have a submit button, and you do not see the JS code for submission
So $_post is not going to get any data.
Must the Submit button be written in the form to get the post? Long pose.
Your form does not have a submit button, and you do not see the JS code for submission
So $_post is not going to get any data.
Edit
Modified to find only the last row of data in the form was modified after editing
Is it because you chose to print the last line of the form when you made the data changes?
Do you want to change the data by ID?
Your form does not have a submit button, and you do not see the JS code for submission
So $_post is not going to get any data.
Edit
Modified to find only the last row of data in the form was modified after editing
Is it because you chose to print the last line of the form when you made the data changes?
Do you want to change the data by ID?
The form you have
This shows only the last data, Ah, the next time the cycle will be the last time the value is overwritten, so it will only modify the final piece of data
Your form does not have a submit button, and you do not see the JS code for submission
So $_post is not going to get any data.
Edit
Modified to find only the last row of data in the form was modified after editing
Is it because you chose to print the last line of the form when you made the data changes?
Do you want to change the data by ID?
The form you have
This shows only the last data, Ah, the next time the cycle will be the last time the value is overwritten, so it will only modify the final piece of data
Thank you!