当前位置:网站首页>On the difference and connection between find and select in TP5 framework
On the difference and connection between find and select in TP5 framework
2022-07-03 08:46:00 【The luckier~】
link : link.
link : link.
The above two links are official for find and select Interpretation of , If you are interested, you can click in to have a look .
I personally agree with one of them :find() Returns a one-dimensional array ,select() Returns a two-dimensional array , So the values are different , One dimensional array value with d a t a [ " n " ] , Two dimension Count Group take value use data["n"], Two dimensional array value with data["n"], Two dimension Count Group take value use data[0][“n”];
find What we found is a record ,select We found multiple records .
In turn to , Check a record find, For checking multiple records select .
If these two are used incorrectly , Data will not come out , There is no display on the page .
Here are some Inline code slice .
// An highlighted block
When the view is displayed , use find The result of the search is assigned to the variable if $res, Then the view shows {
$res}
and select The result of the search is assigned to the variable if $result, Then general and foreach,volist These are used in combination .name="result",foreach after , View presentation {
$v. Field name }
边栏推荐
- 【Rust 笔记】13-迭代器(上)
- Cloudcompare learning (1) - cloudcompare compilation and common plug-in implementation
- Graphics_ Games101/202 learning notes
- Analysis of Alibaba canal principle
- Unity notes 1
- Campus lost and found platform based on SSM, source code, database script, project import and operation video tutorial, Thesis Writing Tutorial
- OpenGL learning notes
- Notes on understanding applets 2022/7/3
- Ue5 opencv plug-in use
- 基于SSM的校园失物招领平台,源码,数据库脚本,项目导入运行视频教程,论文撰写教程
猜你喜欢

单调栈-42. 接雨水
![[rust notes] 02 ownership](/img/f7/74f8ea3bd697957f9ebfa3e1513fda.png)
[rust notes] 02 ownership

单调栈-503. 下一个更大元素 II

22-06-28 Xi'an redis (02) persistence mechanism, entry, transaction control, master-slave replication mechanism

Unity Editor Extension - drag and drop

JS ternary operator - learning notes (with cases)

【Rust笔记】02-所有权

Collection interface
![[concurrent programming] explicit lock and AQS](/img/5f/a80751a68726f53d11133810f454a3.jpg)
[concurrent programming] explicit lock and AQS

Alibaba canal actual combat
随机推荐
[rust notes] 12 closure
Some understandings of 3dfiles
Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)
Installation of PHP FPM software +openresty cache construction
Servlet的生命周期
Notes on understanding applets 2022/7/3
Message pack in C deserializes array objects
matlab神经网络所有传递函数(激活函数)公式详解
22-06-28 西安 redis(02) 持久化机制、入门使用、事务控制、主从复制机制
[concurrent programming] thread foundation and sharing between threads
Monotonic stack -84 The largest rectangle in the histogram
Explain sizeof, strlen, pointer, array and other combination questions in detail
Animation_ IK overview
UE4 source code reading_ Bone model and animation system_ Animation node
Dom4j遍历和更新XML
JS ternary operator - learning notes (with cases)
Unity multi open script
[redis] redis persistent RDB vs AOF (source code)
Development material set
Campus lost and found platform based on SSM, source code, database script, project import and operation video tutorial, Thesis Writing Tutorial