hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
u313348419
/
domains
/
paramedicalcouncilup.org
/
public_html
/
institute
/
Upload FileeE
HOME
<?php include '../includes/db.php'; $value = $_POST['value']; $year = $_POST['year']; $sql = "select * from subjectname where name_id = '$value' and year = '$year'"; $query = mysqli_query($connection, $sql); //$row = mysqli_fetch_array(); $returnVAR = array(); while ($row = mysqli_fetch_array($query, MYSQLI_ASSOC)) { $data = explode(",", $row['subject']); $counts = count($data); for($i = 0; $i < $counts; $i++){ $returnVAR[] = $data[$i]; } } /*print_r($returnVAR); */ echo json_encode($returnVAR); ?>