Sharp pain when I go to the toilet and also blood what is it?

Urine or stool? Not sure if you are talking about pain and blood when you have a bowel movement or when you urinate. In either case you need to be checked by a doctor. If it is with bowel movements you probably have hemorrhoids and you will need to prevent constipation. If it is in your urine then you may have a urinary tract infection. Please see your doctor and be checked as soon as possible.