In PHPMyAdmin there is a way you can select all tables in a database and send a text file by email that enables the database and its contents to be reconstructed with SQL.
I would like to do a similar thing using PHP for a database I have designed in MySQL.
I would like a single button which when clicked would send an email to the webmasters email address. The email would contain the SQL code to recreate the database and insert all records.
Is this possible?
Could anyone advise how I could do it?