You can get a router ( wired or wireless ) if you want your PS3 and pc on the internet at the same time, or connect your PS3 directly to your broadband modem.
You can get a router, connect the PS3 directly to the modem or turn your pc wireless, but you cannot connect your pc to your PS3 through a wire and reach the internet... at least I don't think...