با سلام
من یک دیتابیس دارم که میخوام ازش کپی بگیریم تو ی یک دیتابیس دیگه بخاطر حجم بالای دیتابیس مبدا این در زمان کپی گرفتن خطا می گیرم
<?php    $source_db='db';    $target_db='db2';         $server='127.0.0.1';    $user='user';    $password='pass';     mysql_connect($server,$user,$password);    mysql_select_db($source_db);     // Get names of all tables in source database    $result=mysql_query("show tables");    while($row=mysql_fetch_array($result)){        $name=$row[0];        $this_result=mysql_query("show create table $name");        $this_row=mysql_fetch_array($this_result);        $tables[]=array('name'=>$name,'query'=>$this_row[1]);    }     // Connect target database to create and populate tables    mysql_select_db($target_db);     $total=count($tables);    for($i=0;$i < $total;$i++){        $name=$tables[$i]['name'];        $q=$tables[$i]['query'];         mysql_query($q);        mysql_query("insert into $name select * from $source_db.$name");    }     ?>



نیاز به یک صفحه دارم که اسم کل تیبل ها رو بخونه و با استفاده از متد GET برای صفحه دومی بفرسته که در اون صفحه اسم تیبل رو با استفاده از همون متد GET بگیره و فقط همون تیبل رو منتقل کنه
دوستان کسی میتونه کمک کنه