I was developing a web application
I am building the PHP part now and I have planned to build the script / AJAX part in the future. like adding sort/category option using AJAX to the application.
Below is how my syntax is
<?php open-connection();?>
<html>
Some html part with sort option
<script>script part and some AJAX part </script>
</html>
<?php ob_flush and Close-mysql-connection ?>
will my Ajax /script part works that has access to database depending on the user.
I think after the close connection establishing the ajax will not work. Please guide me.
thanks in advance