A
Anonymous
Guest
How can I write a code and make a php file to backup my database with all the tables inside it?
I assumed you had PhpMyAdmin installed
You should install that. You can download it for free from http://www.phpmyadmin.net/. It has several import and export functions, and is able to import the files created by the above mentioned backup script.
Coditor