How to insert console.log(res) data to database using php mysqli

Have a look over here: getAttendeeslist() doesn't show attendees in console log only showing host name but not other attendees