mysql - specify updated record ID after $_POST in php -
i have page in php multiple row, @ right side of each row there save button, after editing row when click on save how post specified record id page update record on mysql.
thank you
when creating table in "page" means of php can take care create each row html form , define "save" button submit button. clicking button result in form getting sent request.
another approach use javascript this: can add handler function click event of button. inside handler know button (so row) has been clicked , can use selector gather vallues row. can make either post request script, or, more elegant, make background ajax request. allow confirm success of save action without having reload whole page.
many examples both approaches can found here on stackexchange or simple google search. php documentation starting point: http://php.net/manual/en/tutorial.forms.php
Comments
Post a Comment