这是本文档旧的修订版!
参考多说插件
#表名 $table['plugin_duoshuo_comment'] = 'plugin_duoshuo_comment'; #表结构 $datainfo['plugin_duoshuo_comment'] = array( 'ID' => array('ds_ID','integer','',0), 'key' => array('ds_key','string',128,''), 'cmtid' => array('ds_cmtid','integer','',0) ); #全局声明 global $zbp; #判断是否已创建,否则新建数据表 if(!$zbp->db->ExistTable($GLOBALS['table']['plugin_duoshuo_comment'])) { $s = $zbp->db->sql->CreateTable($GLOBALS['table']['plugin_duoshuo_comment'],$GLOBALS['datainfo']['plugin_duoshuo_comment']); $zbp->db->QueryMulit($s); }