I need to update my phone so that i can use the square that i bought for my phone
The iPhone 3g can only be upgraded to 4.2.1
Then read the second half of the article that you linked:
iOS: How to update your iPhone, iPad, or iPod touch
It will tell you how to update via itunes
Retrieving data ...