Server IP : 180.180.241.3 / Your IP : 216.73.216.127 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/umedia3/inc/ |
Upload File : |
<? function get_content($dbname, $table) { $sql = "SHOW columns FROM $table"; $result = tmq($sql); $my_col=Array(); while ($r=tmq_fetch_array($result)) { $my_col[]=$r[0]; } global $conn; $content=""; $result=tmq( "SELECT * FROM $table"); while ($row=mysql_fetch_row($result)) { $insert = "INSERT INTO $table set "; for ($j=0; $j < mysql_num_fields($result); $j++) { $insert.="$my_col[$j]="; if (!isset($row[$j])) $insert.="NULL,"; else if ($row[$j] != "") $insert.="'" . addslashes($row[$j]) . "',"; else $insert.="'',"; } $insert=ereg_replace(",$", "", $insert); $insert.=";#%%\n"; $content.=$insert; } return $content; } ?>