I would say he needs to go to a veterinarian. It sounds like he has heat stroke and that can be remedied with access to water and keeping him inside but at this point he may have developed some kidney damage, maybe a urinary tract infection.
Learn from this. Never leave a pet outside without access to shade and water.
Thank you for your answer to my question bout my dachund it was very helpful. My son put him out and forgot bout him. I will take him to vet this morning.
Thanks again