User Php explode() function:
Look on Below link :
http://php.net/manual/en/function.explode.php
$sql ="select tTrack from tblcourse where tCourseCode = 'AZURE'";
$rs = mysql_query($sql);
$row_rs_course_category = mysql_fetch_assoc($rs);
if(isset($row_rs_course_category['tTrack']) && $row_rs_course_category['tTrack'] != '')
{
$result = explode(',',$row_rs_course_category['tTrack'] );
echo "<pre>";
print_r($value);
}
array explode ( string $delimiter , string $string [, int $limit ] )
delimiter
The boundary string.
string
The input string.
limit
If limit is set and positive, the returned array will contain a maximum of limit elements with the last element containing the rest of string.
If the limit parameter is negative, all components except the last -limit are returned.
If the limit parameter is zero, then this is treated as 1.
explode(',', $row_rs_course_category['tTrack']);MySQL(mysql_*functions) extension is deprecated. I suggest to useMySQLi(mysqli_*functions) orPDOinstead.