$sql=$empire->query("insert into {$dbtbpre}ecms_pingtai(classid,userid,username,checked,truetime,newstime,filename,havehtml,lastdotime,votenum,stb,title,bindingid) values('$classid','$userid','$username','$checked','$truetime','$newstime','$filename',0,'$lastdotime','$votenum',1,'$yunying','$userid');");
$pid=$empire->lastid();
//副表
$psql=$empire->query("insert into {$dbtbpre}ecms_pingtai_data_1(id,classid) values('$pid','$classid');");
//文件命名
if(isset($_POST['filename']))
{
$filename=$_POST['filename'];
}
else
{
$filename=ReturnInfoFilename($classid,$pid,'');
}
$usql=$empire->query("update {$dbtbpre}ecms_pingtai set filename='$filename' where id='$pid'");