How can i fetch all data from any table of a test DB and DUMP it on the production db in same tablename(structure)? in Mysql using PHP code?
Please help me..
EDIT
I need PHP to do this for me using MySQL Queries
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sorry, a little disorganized but these are the functions I use to build the SQL code for table reconstruction and repopulating. This is all within a ‘table’ object but I’m sure you can piece together what’s going on.
The SQL “SHOW CREATE TABLE yourtablename” gives you everything needed to create the table again. All the rest is just looping through all the entries and making INSERT statements.