/ Published in: PHP
The script below connects to a MySQL database server on "localhost" using the login name "test" and password "123456" and then connects to the database "test". It then copies the table structure and data from the table "products" to a new table "products_bak". If the target table already exists the function returns false.
URL: http://www.electrictoolbox.com/php-script-backup-copy-mysql-table/