Skip to content Skip to sidebar Skip to footer

Getting Parseerror For AJAX Call Via Structural Functions

I am creating an API. This is my PHP Function. function get_schools($cn){ $schools = 'SELECT * FROM schools'; $school_result = mysqli_query($cn, $schools); $response_ar

Solution 1:

Since you are defining the DATA_TYPE to json this means the data that is coming after performing request is already converted into an array. That's why you are getting parse error


Post a Comment for "Getting Parseerror For AJAX Call Via Structural Functions"