Diarrhea is a common complication of colon resection surgery, since the water from the stool in intestines is absorbed mainly in colon, so the result is watery diarrhea.
The short tract or the short transit time of passing food is another cause for diarrhea.
To avoid over stimulation of the tract, intestinal movements, you should eat soft food in small amounts more frequently, like having 5 or 6 meals a day.
Try not to take liquids along with the meal, but between them, with the same purpose to avoid stimulating intestinal peristaltic.
Don't consume warm or too cold drinks.
Diet low in fat, low in fiber and low in sugar is recommended.
You may ask your surgeon for some medications, too!