Quantcast
Channel: 刘泓宾博客 - key
Browsing all 5 articles
Browse latest View live

discuz加载语言包

比如我想加载lang_spacecp.php这个语言包只需要在前面使用函数lang('spacecp');然后就可以使用$_G['lang']['spacecp']来进行调用这个语言包。还可以直接使用lang('spacecp','xxx')来直接显示语言。/** * 加载语言 * 语言文件统一为 $lang = array(); * @param $file - 语言文件,可包含路径如...

View Article



discuz 通过uid快捷查询username

$a = DB::fetch_all("SELECT * FROM ".DB::table('common_credit_log')." $w1 ORDER BY logid DESC LIMIT $start,$perpage"); foreach ($a as $key => $value) {$uids[] = $value['uid'];}//获取用户名 $usernames =...

View Article

Discuz showmessage函数解析

函数相关文件\source\function\function_core.php\source\function\function_message.php## 函数解释 /** * 显示提示信息 * @param $message - 提示信息,可中文也可以是 lang_message.php 中的数组 key 值 * @param $url_forward - 提示后跳转的 url *...

View Article

数据库常用SQL语句

一、创建数据库CREATE DATABASE database-name二、删除数据库drop database dbname三、创建表1.直接创建CREATE TABLE tabname ( coll typel [NOT NULL] [AUTO_INCREMENT] [primary key] [COMMENT '注释'] )coll:字段名typel:数据类型NOT...

View Article

Thinkphp学习笔记

一、学习来源看的课程是慕课网的乌云龙的课程 地址:https://www.imooc.com/u/268940/courses?sort=publish二、学习内容1、数据库a.查询// 原生查询 $res = Db::query("select * from user user where id = ?", [1]); // 原生插入 $res = Db::execute("insert...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images