title: Is it better to send AJAX calls to a PHP script? Or use PHP in the page?
body: <p>I'm wondering if I should let one php script do all of the sqli interactions and access the information with AJAX calls, or if I should handle those interactions as needed on the same page. Are there any security issues with either. What is best practice?</p>