-2
        mysqli_query($con, $sql)

        mysqli_close($con);
}

How to use AJAX with PHP

  • 1
    There a PLENTY of tutorials out there on how to use AJAX, google it. – Epodax Aug 05 '15 at 10:51
  • 1
    You shouldn't just comment unhelpfully. He needs help and perhaps you can refer him a link or something. Better than saying Google it. – Altay Mazlum Aug 05 '15 at 10:56
  • @Epodax He doesn't seek tutorials. He's just asking for help as he wrote just above that he got confused. This website is to help each other, not for getting enough reputation to face down. – Altay Mazlum Aug 05 '15 at 11:01

1 Answers1

2

Here is a good answer with a good example. jQuery Ajax POST example with PHP

Also you might want to learn more about basics before going further. Try to google ajax, php ajax mysql and find some tutorials.

Kirill Rogovoy
  • 583
  • 3
  • 11