For my project I need to do the following:
- User presses his Mouse on the canvas (html page)
- JavaScript function saves the coordinates of the points that have been pressed
- Send this info to a PHP script
- PHP script adds this data to MySQL database
- Other coordinates are put into JSON and sent to back to the client and presented on the same canvas
Now, I have looked into the problem of step 3 (which is something I don't know how to do). There are different ways, I have selected these two:
Which would be the best way to choose in my situation? Is there yet a better / right way to do it?
Aucun commentaire:
Enregistrer un commentaire