There is more proper way to do that. I had searched various options to
do that and finally settled on the following method:
PHP Code:
$qry1=mysql_query("INSERT INTO `files` SELECT * FROM `files_temp`");
$qry2=mysql_query("TRUNCATE TABLE `files_temp`");
First query will copy records from files_temp into table files
and then it erases all records from files_temp. This solution
works perfectly for my tables.
if you have phpmyadmin, simply rename the first table to the second table:
this function can be found in the "Operations" tab when you select a table in your database. Make sure you don't have a table called 'files' otherwie it wont rename
Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks