//返回字段列表
function user_CheckVersionTableField($cktbname){
global $empire,$dbtbpre;
if(!$dbtbpre)
{
$dbtbpre='phome_';
}
$returnf=',';
if(!$cktbname)$cktbname=$dbtbpre.'enewsgroup';
$sql=$empire->query("SHOW FIELDS FROM `".$cktbname."`");
while($r=$empire->fetch($sql))
{
$returnf.=$r['Field'].',';
}
return $returnf;
}
|