Yes, connect splitter to tv as you need tv for both ps3 and pc. Use two cable from splitter to ps3 and pc. That should do it.
Thank you! One last question, would you recommend a normal splitter or a splitter box? Or does it even make a difference?