I lost my music on itunes but have them on my iphone?

I lost my music on iTunes but have them on my iPhone, when i click on a song in iTunes it doesn't play and tells me to find the songs but i can't find them anywhere, i didn't buy the music from iTunes though, is there a way that i can transfer my music from my iPhone onto my computer?

U either have to download the song again or if you have them somewhere in your computer. If you have them in your pc, click on the song you want to play in iTunes then click locate song. Then find the song wherever you have in your computer the double click on that song and you should be done

4Videosoft iPhone Transfer Platinum can transfer your music from iPhone to computer or iTunes. I purchased it a few days ago and all I can say is "I LOVE IT!" I'm not a computer guy and now I don;t have to figure out how iTunes works. This iPhone Transfer Platinum can transfer files between iphone and computer. You can have a try.