PS:這可以舉一反三,如新雲或NB等asp文章系統都可轉為dedecms或其它php的cms
複製程式碼 程式碼如下:
//讀取mdb資料庫程式
set_time_limit(0);
$conn = new com("ADODB.Connection");
$conn = new com("ADODB.Connection");
$conn = new com("ADODB.Connection");>$🎜>$🎜>$ “DRIVER={Microsoft Access 驅動程式(*.mdb)};DBQ=”。 realpath("E:web2qq.mdb");
$conn->開啟($connstr);
$rs = new com("ADODB.RecordSet");
$rs->Open("從PE_Article 中選擇*,其中ArticleID>0 或按ArticleID ASC 排序",$conn,1,1);
$conn2 = mysql_connect("localhost","root","");
my_se "dede",$conn2);
mysql_query("SET NAMES GBK",$conn2);
$i=0;
while(!$rs->eof) { $rs->Fields('ArticleID')->value;
$title = addslashes($rs->Fields('Title')->value);
ClassID')->value;
$keywordstr = $rs->Fields('Keyword')->value;
$key遠keyword = trim($keywordstr);
$datestr = $rs->Fields('UpdateTime')->value;
$datearr = explode("-",$datestr);
$yy = $datearr[0] ;
$mm = $datearr[1] ;
$dd = rand(1,28)
$dd = rand(1,28)
$dd ,$yy);
$content =addslashes($rs->Fields('Content')->value);
$content = str_replace('[ChannelstallDir_InChannelir] ,$content);
//$uploadfile = $rs->Fields('UploadFiles')->value; Fields('UploadFiles')->value; 」;
$rs0 = mysql_query($sql0,$conn2);
$row = mysql_fetch_array($rs ); 🎜> $sql1 = 「插入dede_archives (ID,typeid,channel,title,sortrank,pubdate,senddate,adminID,keywords) 值('$id','$classid',1,'$title','$id','$classid',1,'$title','$id','$classid',1,'$title','$id','$classid',1,'$title','$id','$classid',1,'$title', ,'$time','$time',1,'$keyword')";
$rs1 = mysql_query($sql1,$conn2); echo "
";
cho "
";
//退出;
} ;
if($id2>0){ $sql2 ”;
$rs2 = mysql_query($sql2,$conn2);
echo $sql2;
echo "
";
> echo "
";
}
}
$rs->MoveNext(); }
echo "完成";
?>
以上就介紹了dedecms圖片模板 動易數據轉成dedecms的php程序,包括了dedecms圖片模板方面的內容,希望對PHP教程有興趣的朋友有所幫助。