Are you looking for Top PHP Training in Ludhiana?
Your first hurdle is to start trusting in yourself. As long as you continue to feel you "cannot be a good programmer" you will be hobbled.
Remind yourself of when you were "The best" and how you got there and use those skills. As you said you were the best and you can do it again so unless you've acquired some illness or were kicked in the head by a horse or something you can be a great programmer all you have to do is believe it and put forth the effort.
PS a good mentor or boss can work wonders by enabling you to work wonders. Unfortunately the reverse is equally true.
I wish you the best. Don't give up if you need to find someone that can encourage you. I know you can do it from what you said already. Anyone else agree with me?