Ajax Reading from database dynamically

I am developing a website / database solution that gives an administrator the ability to log into a web page and take actions on the database.

Currently they can add / remove / run predefined queries, however in 'edit' the records in the table I would like them to specify the primary key (ID) and then read ajax in the values โ€‹โ€‹associated with that record and allow them.

What's the best way to do this? Any pointers would be great!

+3


source to share


1 answer


First, you probably want to use a Javascript framework like jQuery that takes care of big weightlifting for you.

The main API methods you will be linked with are -



  • serialize to convert the form data to a string that will be passed to your PHP script
  • Ajax make an Ajax call (passing in the details of the data you are changing)
+1


source







All Articles