How to I get my iPhone 4 to sync to my computer?

I just got a new iPhone and it's not recognized by my laptop. I want to sync music onto it, so I'm wondering how I'll be able to do that. It doesn't do it automatically and I'm having trouble doing it manually.

Firstly you should make sure that if you're using windows you have iTunes installed.secondly, sometimes iTunes doesn't synchronize automatically. You need to go onto iTunes and check if iTunes itself can recognize your device and not the computer, usually there will be an icon on the top right part of the iTunes screen that will show "iPhone" if it is recognized. After that you need to pick and choose which music, photos, videos, podcast etc. You want on the device and you may then after synchronize it.