okay i have a doubt c...y do antibiotics only efect the bacteria and not viruses 
An antibiotic is a selective poison. It has been chosen so that it will kill the desired bacteria, but not the cells in your body. Each different type of antibiotic affects different bacteria in different ways. For example, an antibiotic might inhibit a bacterium's ability to turn glucose into energy, or its ability to construct its cell wall. When this happens, the bacterium dies instead of reproducing. At the same time, the antibiotic acts only on the bacterium's cell-wall-building mechanism, not on a normal cell's.
Antibiotics do not work on viruses because viruses are not alive. A bacterium is a living, reproducing lifeform. A virus is just a piece of DNA (or RNA). A virus injects its DNA into a living cell and has that cell reproduce more of the viral DNA. With a virus there is nothing to "kill," so antibiotics don't work on it.