A value in a column named 'Marks' is stored as [45,56] in my DB. I wants to extract its value as 45 and 56 . I have tried like below. But not getting values separately .
$result =mysql_query("SELECT * FROM school where StudentID='$ss'") or die(mysql_error());
while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
$Fromtable_CurrMARK= $row['marks']; //getting as [45,56]
$CurrMark = json_decode( $Fromtable_CurrMARK);
$mark1 = $CurrMark[0];
$mark2 = $CurrMark[1];
}