Quitting PhD 2 years into a 3-year program
You most probably got into a PhD program with a bad supervisor. This is not your fault. The first option is to talk with your supervisor and see if he thinks there is a chance that you can finish your PhD. Most of the time a PhD is more a social concept than a scientific one: science is hard - if people think that you did things to the best of your ability there is a high chance that they let you graduate with minor results. But be aware that this can set you into a situation of dependence and pressure that can be exploited and might cause mental harm to you. This does depend on your personal relationship to your supervisor. If you think you can go through this period and he is still positive about your projected progress, then stick with it. If not, then start looking for alternatives. There is no shame in starting a second PhD or finding a job in industry. If you openly explain your situation, people will understand. Additionally, doing a PhD is a highly idealistic approach and most people show signs of depression during a situation of hardship. You might want to seek out for additional help if you show signs of depression.