Z-Blog主页
Z-Wiki
应用中心
菠萝阁
ZBlogger
Z5加密
跳至内容
Z-Blog Wiki
Z-Blog官方文库
用户工具
登录
站点工具
搜索
工具
显示页面
修订记录
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您在这里:
Z-Blog & Z-BlogPHP
»
Z-BlogPHP
»
应用开发指南
»
Z-BlogPHP插件开发
»
自定义数据库表
zblogphp:development:plugin:自定义数据库表
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== 自定义数据库表 ====== 参考多说插件 <code php> #表名 $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); } </code>
zblogphp/development/plugin/自定义数据库表.1466424118.txt
· 最后更改: 2016/06/20 20:01 由
127.0.0.1
页面工具
显示页面
修订记录
页面重命名
回到顶部