Asyncronous Programming in PHPMYADMIN



Asyncronous Programming in PHPMYADMIN
--------------------------------

Asyncronous means doing multiple task Parallely
Syncronous means doing task one after the other it will wait till the first task is completed.

Why do we required concept of Asyncronous Programming
It is because JS is event Based and PHP is Page Load Based(Response)
if event Occurs Response will wait
Response will occur then event will wait
Deadlock condition will occurs
That is why we need Asyncronous Programming
This can be done using Concept Of Ajax

Ajax:
-----
Ajax: Asyncronous JavaScript and XML Response : Content-Type:application/xml
Ajaj : Asyncronous JavaScript and Json response : Content-Type: application/json
Ajay : Asyncronous JavaScript and Yml Response : Content-Type: application/yml


How to Achieve:
```````````````````
You need to send Asyncronous Request:
Vanilla.js or Pure JavaScript
var http=new XMLHttpRequest();
     http.open("url");
     http.send("url",true,"GET/POST");
                 |     |     |----Method GET/POST
                 |     |--------------->is Asyncronous
                 url where to send data

Using Jquery
$.ajax({
   url:"getdata.php",
   dataTYpe:JSON|XML|YML|"text",
   type:"GET/POST",
   success:function(response){
   // js Code
   // code is key in Json Object returned by PHPMYADMIN
   if(response.code==200){
     //js code but data binding
   }else{
     console.log(response);
   }
   },
});


Asyncronous Programming in PHPMYADMIN