name; } $i++; } $i=0; $json="[\n"; while($row=mysql_fetch_array($resultSet, MYSQL_NUM)) { $i++; //print("Ind ".$i."-$affectedRecords
"); $json.="{\n"; for($r=0;$r < count($arrfieldName);$r++) { $json.="\"$arrfieldName[$r]\" : \"$row[$r]\""; if($r < count($arrfieldName)-1){ $json.=",\n"; }else{ $json.="\n"; } } if($i!=$affectedRecords){ $json.="\n},\n"; }else{ $json.="\n}\n"; } } $json.="]\n"; return $json; } } ?>
Notice: Undefined index: id_di in C:\xampp\htdocs\disease\disease.php on line 4
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY disease ASC' at line 1