I have two tables, table 1 has 2 fields (question_pk, question_name) and table 2 has 4 fields(ans_pk, options, question_fk and right_answer). I want to create json l
Hi try this,
$opt_fet['options'], 'right_ans' => $opt_fet['right_ans'], ); } array_push($json_response, $row_array); //push the values in the array } echo json_encode($json_response); } ?>