My iphone won't sync to the computer its plug up but it won't work What to do?

I plug it up and it charges like its hook up on the computer but when i go to itunes it won't sync

Try going on iTunes and click 'Advanced' at the top and the very last option at the bottom of the pull-out tab. (I can't remember what it says, sorry.)

Have you tried rebooting your computer?