I\'m trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database lik
$.ajax({ url: '/route/', type: 'POST', dataType: "json", data: { type: "add", comment: $("#comment").val(), id: videoID }, success: data => {console.log(data);} }); "$realid", "un" => "$username", "date" => "$date")); ?>