What kind of printer did you use?
If you Google, there are lots of websites that explain exactly how to make printing on fabric colorfast, but there are different methods. Inkjet printers tend to give the best results, but you need to either pre-treat the fabric with a special solution (Bubble Jet, I think) or purchase pre-treated fabric sheets. Laser printers require heat setting.