I am trying to get the sum hours for each month from a given user and having problems with the code. Need help.what I have so far:\[quote\] $sql = "SELECT sum(hours) AS total_Hours FROM flights WHERE month = 3 and username='$myname'";\[/quote\]This isn't even working, But what i really need is total hours from user for each month.possible?