does anyone know how I can substitute data in a table returned by sql, for example, my query is
echo $sql = "SELECT priorities.PRIORITY, lastWeek.WEEK1, twoWeeksAgo.WEEK2, threeAndFourWeeksAgo.WEEK4, fourToEightWeeksAgo.WEEK8
FROM (SELECT DISTINCT call.priority FROM call
WHERE call.priority IN ('0','1','2','3','4','5','6','7','8','9')) as priorities
LEFT JOIN
( SELECT call.priority, count(*) as week8
FROM call
LEFT JOIN org on org.org_id = call.org_id
WHERE org.mnemonic = '$orgname' AND call.opendate BETWEEN '$dates[8]' AND '$dates[6]' AND call.status = 'OPEN'
GROUP BY call.priority
and the results show
PRIORITY WEEK1 WEEK2 WEEK4 WEEK8
1 NULL NULL NULL NULL
2 3 1 NULL 3
3 15 6 1 5
4 2 2 1 1
5 2 1 NULL 1
9 NULL NULL NULL NULL
what I need is to replace the NULL with either a '0' or 'None'......any ideas ??