Can I get the music from my iphone to my computer?

I have an old iphone 3g with more than 300 songs, not that many but I only have like 20 in my pc. I want to know if there's a way I can get all my songs to my pc. I'm afraid that syncronizing my iphone to the computer might erase the songs that are in it but not in the computer. Please, I need help, my iphone is starting to die and I don't want to lose my songs.

Synchronizing isn't suposed to delete all you have, there might be a checkmark saying (delete imported items) or something, but make sure it is unchecked. I have macintosh and iTunes (&iTunes Library) is what I use to sync my hardware. But if your phone is dying, (battery wise), than plug it in for petes sake! Like in the wall first if you don't trust synchronizing yet.

Google xilisoft iphone transfer, which can help you.

Use SharePod on Windows

Follow the steps given in this Apple Support Communities article to get your iPhone copied to your computer without data loss…
https://discussions.apple.com/...s/DOC-3141