Location Of The Engine ID
The 1.7L Honda Civic comes in two flavors: D17A1 or D17A2. You can easily identify which engine your Honda Civic has by checking its identification code located on the front of the engine.
The arrow in the photo (above) points to the location of the engine ID number.
Where To Buy The Oxygen Sensor And Save Some $$$
The one thing to keep in mind, when buying the upstream O2 sensor on your 1.7L Honda Civic, is the fact that the O2 sensor's connector may have male or female terminals.
For the most part, the D17A1 engine uses an upstream O2 sensor that has male terminals in its connector and the D17A2 engine uses an upstream O2 sensor that has female terminals in its connector.
If you find, after testing the upstream oxygen sensor that its heater element is fried, take a look at the links below. I think they'll save you some bucks:
D17A2 Engines:
D17A1 Engines:
NOTE: If you're not sure if the above upstream O2 sensor fit your particular 1.7L Honda Civic, don't worry, once you get to the site, they'll make sure the sensor is the right one, if not, they'll find you the right one.
If this info saved the day, buy me a beer!