I have already stored data in array and I want to get value in each id that separated with ","
Example:
sql table:
ruleID | symptomID | penyakit
R1 | s1,s2 | DD
R2 | s1,s2,s3 | DD
Php code:-
while ($row = mysql_fetch_array($query)) {
$allS = $row['symptomID'];
$penyakit = $row['penyakit'];
if ($penyakit == 'DD') {
$arrRuleDenggi[] = $allS;
}
}
I've already tried print_r(explode(",",$arrRuleDenggi)
but it doesn't work.I just wanna take value without commas..