I have a website which is created in php and MySQL. There is admin control panel through which I uploads daily picture to my website and at the homepage latest uploaded picture display automatically when I upload any new picture.
To logging in to my control panel path is for example " www.ie.com/admin.php"
where I use the password and username to login to my website control panel. both the password and username are saved in MySQL.
Now the hacker hacked my website in such a way my homepage is change with there logo or there index page, none of other things are deleted from the my ftp including MySQL database and other directory.
And whenever I correct this problem then again after 2 or 3 days my website hacked.
And whenever my website hacked they write about it in hacker forums, and now they are betting on my website for hacking.
Please any senior php developer tell me what should I do in my php code so that they cannot hacked my website.