I have a DVI graphics card. And I need to connect with a LCD with VGA port. Which cable I need for this: DVI to VGA (female) or a VGA(female) to DVI cables
There are adaptors for DVI to VGA. Then you can plug in a standard VGA cable.
i.e. one of these + a standard VGA cable should do it:
Sometimes they are supplied with your computer.
Notice the four pins around the flat pin; those carry the analog signal required for VGA. A DVI-D port lacks an analog signal and those pins won't fit:
If your video card only outputs digitally, you could consider an active DVI-D to VGA adapter, which costs around 47 USD: