I have several questions involving the interaction between JavaScript and MySQL.
The basic idea of what I am trying to accomplish is to use JavaScript to allow admins to change the content of certain elements. These elements contain text and by clicking on the element, using JavaScript, a "pop-up" textarea with the old text should appear and allow the admin to modify the text. After the admin modifies the text he can then post it modifying data in the MySQL table.
I understand that the basic flow of this action will be: javascript -> AJAX request -> script running on the server (PHP, Perl, ASP.NET, whatever) -> database
- Can some one give me a very basic demo of how to perform something like this?
- Is this unsafe?
- Is this the best approach for what I am trying to accomplish?