title: PHP pass multiple parameters on success in ajax call
body: <p>I am doing this ajax call</p>
  
  <pre><code>&lt;script&gt;
      function reserveSeat(showID) {  
          $.ajax({        
          url: 'reserve_seat.php',
          type: 'post',
          data: { "showID": showID}        
          }).done(function(data) {                    
              var booked_seats = JSON.parse( data1, data2, data3 ); //get multiple values 
              console.log(booked_seats);                     
          });
      };
      &lt;/script&gt;
  </code></pre>
  
  <p>and in my reserve_seat.php I want to pass multiple echo</p>
  
  <pre><code>$query = "SELECT * FROM `seats` WHERE show_id='" . $_POST['showID'] ."'";
      $result = mysql_query($query);
  
      if($result){
          $booked_seats = array();
      while($row = mysql_fetch_array($result)){
          array_push ($booked_seats, array($row['id'], $row['row_no'], $row['col_no']));   
      }
      echo json_encode($booked_seats, var2, var3); //echo multiple variable        
      } else {
          echo mysql_error();
      }
  </code></pre>
  
  <p>What I want is commented in the above code. How can I do this?</p>