now when I plug it into my computer i get a message saying that I need to update itunes on my iphone
No, you really are not getting any such message.
Read the message again. What does it really say?
All of the media should be on your computer, simply connect the phone and sync it back.