I’m developing a website/database solution which gives the administrator the option to sign into the webpage and perform actions on the database.
Currently they can add/delete/run pre-defined queries, however to ‘edit’ records in a table, I would like them to specify the primary key (ID) and then have ajax read in the values associated with that record and allow them to be changed.
What’s the best way to go about this?
as stratton suggested you have to use jquery/html on frontend and php/mysql on backend that will have the logic to handle the data you send and retrieve result that will be sent back to the user.
ex.
have a form that will send the id to search:
I suggest then to use jquery to send the form via ajax like this:
On you php side you will have to parse the post and then perform the action
This way you can create multiple logic step by setting each time a different action, and the anwer can be full html code that contains the “next step” to perform.