Yes, I'm losing my mind. I really need some help and am willing to pay for some direction here. Below is a copy of an earlier question I posted. Mostly, I need to know if what I have to do is even possible!
Laurie
Here is the schematic of what I am trying to do. Can anyone tell me whether this is possible? And maybe point me in some direction. I have been reading the various manuals and the forum discussions, but don't seem to find answers to my particular questions. I guess the biggest question is just whether or not it's do-able. For more details, see http://www.llhgraphics.com/sample.htm.
Thanks,
Laurie
// User selects 1 of 4 SERVICEs, and 1 or more MONTHs
// TABLE 1
// ROW 1
strMonth
strBetterThanExpected
strAsExpected
strWorseThanExpected
strTotal
// ROW 2
$MONTH[1]
$result[1] = mysql_query("select 31_EXPECTED, COUNT() where SERVICE LIKE '$SERVICE%' and $MONTH[1] and 31_EXPECTED='A'")
$result[2] = mysql_query("select 31_EXPECTED, COUNT() where SERVICE LIKE '$SERVICE%' and $MONTH[1] and 31_EXPECTED='B'")
$result[3] = mysql_query("select 31_EXPECTED, COUNT(*) where SERVICE LIKE '$SERVICE%' and $MONTH[1] and 31_EXPECTED='C'")
$result[4] = ("sum($result[1],$result[2],result[3]))
// ROW 3
$MONTH[2]
$result[5] = mysql_query("select 31_EXPECTED, COUNT() where SERVICE LIKE '$SERVICE%' and $MONTH[2] and 31_EXPECTED='A'")
$result[6] = mysql_query("select 31_EXPECTED, COUNT() where SERVICE LIKE '$SERVICE%' and $MONTH[2] and 31_EXPECTED='B'")
$result[7] = mysql_query("select 31_EXPECTED, COUNT(*) where SERVICE LIKE '$SERVICE%' and $MONTH[2] and 31_EXPECTED='C'")
$result[8] = ("sum($result[5],$result[6],result[7]))
// ROW 4
$MONTH[3]
$result[9] = mysql_query("select 31_EXPECTED, COUNT() where SERVICE LIKE '$SERVICE%' and $MONTH[3] and 31_EXPECTED='A'")
$result[10] = mysql_query("select 31_EXPECTED, COUNT() where SERVICE LIKE '$SERVICE%' and $MONTH[3] and 31_EXPECTED='B'")
$result[11] = mysql_query("select 31_EXPECTED, COUNT(*) where SERVICE LIKE '$SERVICE%' and $MONTH[3] and 31_EXPECTED='C'")
$result[12] = ("sum($result[9],$result[10],result[11]))
// Repeat depending on how many months selected
// ROW (last)
strTotal
$result[13] = ("sum($result[1],$result[5],result[9]))
$result[14] = ("sum($result[2],$result[6],result[10]))
$result[15] = ("sum($result[3],$result[7],result[11]))
$result[16] = ("sum($result[4],$result[8],result[12]))
// TABLE 2
// (Repeat above but with percentages instead of counts.)