0👍
✅
This has nothing to do with php, mysql or xampp. You are using an undefined method called text
. The error message says it all. Check your third and fourth lines in the ajax success. You have:
var activeData = text(data.active);
Replace it with :
var activeData = data.active;
and see what happens.
Source:stackexchange.com