I do not think it's possible for your dog to have syphilis or gonorrhea. Those are human diseases.
But your dog could have inflammation of his penis. That is called "Balanitis". It could be quite painful for your dog. The best idea is to take him to the vet to be checked.
i know that some dogs got syphilis but it's normal. my question is if it is possible to contrast it from my dog...
im really nervous because maybe i touched it
Mel, syphilis is a human disease. Dogs can have brucellosis, a sexually transmitted dog disease which humans can contract, however the contact that you described is not enough for you to have gotten if even if it was the problem. Your dog more than likely has some type of infection that, even though it's not syphilis, DOES need to be treated by your veterinarian, however you needn't worry about getting syphilis (or much of anything else) from your dog with normal dog/owner contact.