Without the model number comptuer, I cannot verify what outputs your comptuer has. Without this, I will provide the various ways a PC can be connected to a TV.
1. Use a VGA to DVI adapter (HD-15 pin to DVI). Use either a standard VGA montor extension cable (cheaper) or a DVI extension cable (more expensive) to make the connection
2. If you computer has a DVI output, use a DVI extension cable only
3. If your computer has HDMI output - use a HDMI to DVI adapter and either a HDMI or DVI extension cable.
In all 3 cases, you will probably need to go to the comptuer's Display Properties and adjust the screen size so it looks OK on your TV (go to the Control Panel - find Display) and adjust the screen resolution to match the format of your TV.
One note - when purchasing DVI cables, understand that there are 3 types - DVI-D (digital), DVI-A (analog) and DVI-I (digital and analog) and that the pin outs are different. Be sure to check your the owners manual of your TV to find which connection it needs.
Here is a good reference for DVI types