well... i tried this:
$result = mysql_query("SELECT SUM(gCOUNT) as gINVITED, COUNT(gID) as gPARTIES, COUNT(gRSVP) where gRSVP=1 as gRSVPED, SUM(gCOUNT) where gRSVP=1 as gATTENDING from guests");
if (!$result)
{
die('Could not query:' . mysql_error());
}
but i got yelled at :rolleyes:
Could not query:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where gRSVP=1 as gRSVPED, SUM(gCOUNT) where gRSVP=1 as gATTENDING from guests' at line 1
This is my first time doing a statement like this... and my "Welling and Thomson" isnt helping 🙁