Hi, If you are really worried take him to your vet and if they say it's the heat at least you can relax a bit. They will have more suggestions for you. Good luck
It could be the heat. I'd keep an eye on him. Do you know how to take a rectal temp? You need a rectal thermometer and some KY Jelly or Vasaline. Anything over 103 would be a concern. You don't say he has diarrhea or anything like that. If these symptoms continue for more then 48 hrs, I'd probably take him into the vet, due to his age, and get a check up.
In the mean time, you can give him wet towels to lay on (wet them them wring then out). You can get a mist bottle of water and mist him down real well and rub your hands real good throughout his coat so it gets down to the skin, you can to this often. Also, wet the pads of his feet (dogs sweat through their pads).
Hope it's just the heat. Often my dogs don't eat much when it's hot either. The important thing is to make sure he is drinking enough fluids.