i am trying to use my iphone`s 3g to use it on my pc. is there anyway to do this ?i am using iphone 4
I am taking a wild guess that you are on AT&T, seems logical

First, you’ve gotta be signed up for AT&T’s $25 DataPro plan, with its cap of 2GB per month. Already on AT&T’s now retired $30 unlimited data plan? Bummer, dude – no tethering for you. Unless you downgrade to the 2GB-per-month plan, thereby forever killing your access to the unlimited plan.
Once you’re on DataPro, adding tethering support to your plan will set you back an additional $20 per month. That brings the total cost of your data plan up to $45 a month.
Note that that extra $20 a month only adds tethering — you don’t get any extra bandwidth.
Another good reason to jailbreak.