troubleshooting Question

Using Ajax in PHP for updating data in my sql database

Avatar of pankajrathod84
pankajrathod84 asked on
4 Comments1 Solution536 ViewsLast Modified:
      I want to use Ajax to update data in the database for each of the small blocks in my site. I searched on net and found some code on for updating mysql database using Ajax. In the example it used to call a PHP page using GET method and passing the parameters as query string.
      I used it in my code and working good.
     Now I want to know am I using right way to update database? As user can view the path of the php file and the parameters I am passing in the page source at browser. User can hack it very easily by simply calling my internal php page with passing parameter with GET method.
     Is ther any way to improve security or any other way to update my database without page refresh.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros