include("common.inc.php");
s("2008/02/13");
if($_GET["t"]!=""){
$tablename=$_GET["t"];
}else{
$tablename="backend_user";
}
$result = mysql_query("SELECT * FROM `$tablename`", $link);
$line = mysql_fetch_array($result, MYSQL_ASSOC);
$i=0;
$cols = array();
foreach ($line as $col_value => $v) {
$cols[$i] = $col_value;
$i++;
}
$strsql ="\$sql=\"
UPDATE \".\$page_tbname.\" SET ";
for ($j=1;$j";
if ($j != 1 ) {
$strsql .= ", ";
}
$strsql .= "`".$cols[$j]."` = '\".escapeit($".$cols[$j].").\"'
";
}
$strsql .= " where `id` = '\$id'
\"; ";
print ($strsql).'
';
print ($strsql2);
?>