<br />
<b>Deprecated</b>:  mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in <b>D:\wwwroot\bbs.5ucms.com\source\class\discuz\discuz_database.php</b> on line <b>177</b><br />
<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>5ucms论坛 - THINKPHP</title>
    <link>http://bbs.5ucms.com/forum-58-1.html</link>
    <description>Latest 20 threads of THINKPHP</description>
    <copyright>Copyright(C) 5ucms论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 31 May 2026 20:37:44 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://bbs.5ucms.com/static/image/common/logo_88_31.gif</url>
      <title>5ucms论坛</title>
      <link>http://bbs.5ucms.com/</link>
    </image>
    <item>
      <title>14 读取器与修改器</title>
      <link>http://bbs.5ucms.com/thread-713-1-1.html</link>
      <description><![CDATA[1]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Tue, 24 Sep 2019 23:12:25 +0000</pubDate>
    </item>
    <item>
      <title>13 模型和关联-下</title>
      <link>http://bbs.5ucms.com/thread-708-1-1.html</link>
      <description><![CDATA[批量新增



查询操作，按主键ID



查询操作，按字段内容搜索式查询 getByXxxx()方法 
Xxxx可以是任意数据表有的字段



根据传入数组作为查询条件


查询操作，多个结果查询


对于数据库查询出来的数据进行更新


对于数据库查询出来的数据进 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Sat, 21 Sep 2019 02:00:58 +0000</pubDate>
    </item>
    <item>
      <title>12 模型和关联-上</title>
      <link>http://bbs.5ucms.com/thread-636-1-1.html</link>
      <description><![CDATA[model文件夹下的文件命名规则：

去掉表前缀，首字母大写
表名有下划线的去掉，变为原下划线后的首字母大写来替代，如 bbs_name 表，就命名为 BbsName.php 文件

举例一：

Test.php



举例二：

model/Users.php



此时在controller中写一个]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Tue, 09 Jul 2019 06:12:40 +0000</pubDate>
    </item>
    <item>
      <title>11 ThinkPhP5 查询语言-下</title>
      <link>http://bbs.5ucms.com/thread-631-1-1.html</link>
      <description><![CDATA[·获取某行某列某个值 关键词 value
$name = Db::name(\'data\')
-&gt;where(\'id\',16)
-&gt;value(\'name\');
print_r($name)

·获取某列 关键词 colum 单列
$list = Db::name(\'data\')
-&gt;where(\'status\',1)
-&gt;column(\'name\');
print_r($list)


·获取 id 键名name  ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Sun, 07 Jul 2019 11:02:34 +0000</pubDate>
    </item>
    <item>
      <title>10 ThinkPhP5 查询语言-上</title>
      <link>http://bbs.5ucms.com/thread-582-1-1.html</link>
      <description><![CDATA[1、ID等于4
$result = Db::name(\'data\')-&gt;where(\'id\',4)-&gt;find();
2、ID大于4
$result = Db::name(\'data\')-&gt;where(\'id\',\'&gt;=\',4)-&gt;find();
这里的\'id\',\'&gt;=\',4可以换成where(\'name\',\'null\')-&gt;select();

4、使用exp条件表达式，表示后面在部分使用SQL原声语句查询， ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Mon, 10 Jun 2019 11:03:41 +0000</pubDate>
    </item>
    <item>
      <title>9 thinkphp 数据库-事务、链式操作</title>
      <link>http://bbs.5ucms.com/thread-559-1-1.html</link>
      <description><![CDATA[5、查询构造器
//插入记录
Db::table(\'tp_data\')-&gt;insert([\'id\'=&gt;18,\'name\'=&gt;\'tp5\',\'status\'=&gt;1]);
Db::name(\'data\')-&gt;insert([\'id\'=&gt;18,\'name\'=&gt;\'tp5\',\'status\'=&gt;1]);
//更新记录
Db::table(\'tp_data\')-&gt;where(\'id\',2)-&gt;update([\'name\'=&gt;\'hello\']);
//查]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Thu, 30 May 2019 12:40:30 +0000</pubDate>
    </item>
    <item>
      <title>8 thinkphp数据库快速入门 tp5数据库基本操作</title>
      <link>http://bbs.5ucms.com/thread-558-1-1.html</link>
      <description><![CDATA[1、数据库配置
app/database.php中配置账号密码等信息


2、query execute 原生态 sql 语句，增删改查 使用时请去掉@字符



3、参数绑定，命名占位符绑定




4、多个数据库切换查询操作
需要在app/config.php中配置 db2 的数据库，数组格式参考database ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Thu, 30 May 2019 11:10:00 +0000</pubDate>
    </item>
    <item>
      <title>7 SQL追踪器 sql调试工具 sql追踪 TPshop</title>
      <link>http://bbs.5ucms.com/thread-557-1-1.html</link>
      <description><![CDATA[当SQL出错时，使用此工具可以快速定位出错点。
适合拿到一个不熟悉的程序时。自己写的感觉应该用不上。

1、**** 本内容被作者隐藏 ****，如失效请用以下方式下载解压
**** 本内容被作者隐藏 ****
CTRL+F搜索工具箱

2、修改hosts文件，改成比如php.com
3、修改 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Thu, 30 May 2019 10:43:55 +0000</pubDate>
    </item>
    <item>
      <title>thinkphp上传文件为空时，直接仍错误出来 TP没有文件被上传 解决方法</title>
      <link>http://bbs.5ucms.com/thread-553-1-1.html</link>
      <description><![CDATA[如果提示 没有文件被上传！
大概是因为你按官方手册写的例子
$file = request()-&gt;file(\'pimg\');
这句话 是必须有文件选择上传了才会通过, 不传文件会直接报错. 使用也屏蔽不了
正确的应该这么写
**** 本内容被作者隐藏 ****
然后判断$file （这是数组）
**** 本 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Wed, 29 May 2019 10:51:35 +0000</pubDate>
    </item>
    <item>
      <title>6 thinkphp响应 response</title>
      <link>http://bbs.5ucms.com/thread-552-1-1.html</link>
      <description><![CDATA[返回输出的内容




页面跳转]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Wed, 29 May 2019 10:47:43 +0000</pubDate>
    </item>
    <item>
      <title>5 thinkphp的请求 request tp5的请求教程</title>
      <link>http://bbs.5ucms.com/thread-548-1-1.html</link>
      <description><![CDATA[请求request: $_GET $_POST $_REQUEST $_COOKIE $_FILES
响应response: json xml redirect view模板输出 $this-&gt;success 或 $this-&gt;error

函数助手 param()   request()  url()   input()]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Tue, 28 May 2019 04:46:51 +0000</pubDate>
    </item>
    <item>
      <title>originThink框架后台安装教程，验证码不能用，突然不能用</title>
      <link>http://bbs.5ucms.com/thread-546-1-1.html</link>
      <description><![CDATA[安装步骤：
   第一步：下载originThink源码（如果下载群里的完整包，可忽略第二步）

   第二步：下载thinkPHP源码
      方式1、Composer方式：Composer install 或 Composer update
      方式2、手动下载ThinkPHP核心包，命名为thinkphp，放入根目录，推荐下载 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Tue, 28 May 2019 00:19:18 +0000</pubDate>
    </item>
    <item>
      <title>PHPExcel导出的问题，在PHP7中php：//output 出错</title>
      <link>http://bbs.5ucms.com/thread-543-1-1.html</link>
      <description><![CDATA[这个的出错程度较大，连出错信息都没，就像网站不存在一样
**** 本内容被作者隐藏 ****

网上也有说处理办法的
**** 本内容被作者隐藏 ****

我的环境 TP5.1+WDCP+NGINX+PHPEXCEL1.8.0]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Mon, 27 May 2019 15:14:11 +0000</pubDate>
    </item>
    <item>
      <title>PHPexcel 的常用方法</title>
      <link>http://bbs.5ucms.com/thread-542-1-1.html</link>
      <description><![CDATA[//引入库
include \'PHPExcel.php\';
//创建一个excel
$objPHPExcel = new PHPExcel();
创建一个excel
$objPHPExcel = new PHPExcel();
保存excel—2007格式
$objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
//或者$objWriter = new PHPExcel_Writer_ ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Mon, 27 May 2019 12:53:12 +0000</pubDate>
    </item>
    <item>
      <title>thinkphp5.1 tp5.1从哪下载？</title>
      <link>http://bbs.5ucms.com/thread-541-1-1.html</link>
      <description><![CDATA[从5.1起，在官方网站没有下载包了
得从git上下
https://gitee.com/liu21st/thinkphp5]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Mon, 27 May 2019 11:02:06 +0000</pubDate>
    </item>
    <item>
      <title>wdcp如何安装thinkphp5教程，wcdp安装tp5框架方法</title>
      <link>http://bbs.5ucms.com/thread-535-1-1.html</link>
      <description><![CDATA[由于tp5的运行目录并不是网站的根目录
而wdcp的根目录叫public_html
因此，你要把tp5的public目录里的内容 释放到 public_html里
public的上一层目录，直接放到你的plulic_html的上一次目录里
然后运行时，系统会提示模板路径找不到之类的
然后有些同学不得不选择 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Mon, 27 May 2019 00:23:27 +0000</pubDate>
    </item>
    <item>
      <title>4 路由定义</title>
      <link>http://bbs.5ucms.com/thread-520-1-1.html</link>
      <description><![CDATA[app下有个route.php，路由配置文件，可以用来简化路径。通过简化路径可以让访客猜不到真实模块所在的文件夹。

关于路由，这里有个手册写的很详细，图文式，容易理解 https://www.kancloud.cn/ldkt/tp5_route 售价9.9，不是我写的哈，试读可以看一部分内容

一、单 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Thu, 23 May 2019 01:34:23 +0000</pubDate>
    </item>
    <item>
      <title>3 URL定义</title>
      <link>http://bbs.5ucms.com/thread-519-1-1.html</link>
      <description><![CDATA[单一入口到不同的模块，不同的控制器，带上不同的方法名和参数
如 5ucms.com/app/controler/class/name/3邱嵩松建议大家只学习这种默认方式，最节约心智，其他的大概地模糊地知道能那么用，真遇到需要时去官方查文档即可。速成就只学重点即可。

1、URL和模块目录 建 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Thu, 23 May 2019 01:09:28 +0000</pubDate>
    </item>
    <item>
      <title>2.2 hello world 简单体验MVC结构</title>
      <link>http://bbs.5ucms.com/thread-516-1-1.html</link>
      <description><![CDATA[1、数据库读一行
$data = Db::name(\'users\')-&gt;find();
print_r($data);
2、view层模板


控制层：


如果fetch(\'index2\')，就是调用index2模板


视图层：
view模板中调用]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Thu, 23 May 2019 00:28:15 +0000</pubDate>
    </item>
    <item>
      <title>2.1 入门和安装 数据库配置 环境配置</title>
      <link>http://bbs.5ucms.com/thread-515-1-1.html</link>
      <description><![CDATA[1、TP目录意义
application 项目开发的文件
extend 扩展
public 首页 入口文件
runtime 临时缓存文件
thinkphp 核心框架文件
vendor 第三方类库

2、配置

数据库本地管理可以用 sqlyog
数据库端口一般是3306，买来的服务器一般默认不对外开放，远程管理要加 ...]]></description>
      <category>THINKPHP</category>
      <author>admin</author>
      <pubDate>Thu, 23 May 2019 00:25:52 +0000</pubDate>
    </item>
  </channel>
</rss>