Cannot get value of implode() response from php file using ajax (array to string conversion error)

QuestionsCannot get value of implode() response from php file using ajax (array to string conversion error)
sethbeckerman5 Staff asked 4 years ago

The scenario is here I accept all button click that has ID starts with 'editbtn' like editbtn1/editbtn2 etc ; and get only the number to send via ajax to find data id based on the button id (number)

And In visitor_book_crud.php

I tried to directly send request to visitor_book.crud?request=find_data&data_id=1 and the output is like this, exactly same as what I want to be appeared in ajax response
1,2022-06-29,03:07:30,03:39:39,6,,A_NAME,3,,,SOME_NAME,,1,
But when I press edit button, it says

I searched from many thread but still dont solve my problem, any help would be appreciated


View on Stack Overflow