当前位置:网站首页>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 }
边栏推荐
- Introduction to hexadecimal coding
- Image processing 8-cnn image classification
- 796 · unlock
- [rust notes] 09- special types and generics
- 【Rust 笔记】08-枚举与模式
- Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)
- [updating] wechat applet learning notes_ three
- Osgconv tool usage
- 单调栈-503. 下一个更大元素 II
- Development material set
猜你喜欢

OpenGL learning notes

Jupyter remote server configuration and server startup

Kwai 20200412 recruitment
![[RPC] RPC remote procedure call](/img/dc/872204ea47fcff04cdb72e18a2a4ef.jpg)
[RPC] RPC remote procedure call

Ue5 opencv plug-in use

UE4 source code reading_ Bone model and animation system_ Animation node

Collection interface

Gradle's method of dynamically modifying APK package name

Introduction to Base64 coding

Monotonic stack -42 Connect rainwater
随机推荐
Monotonic stack -84 The largest rectangle in the histogram
数据库原理期末复习
Unity learning notes
【Rust 笔记】07-结构体
[MySQL] MySQL Performance Optimization Practice: introduction of database lock and index search principle
Jupyter remote server configuration and server startup
[concurrent programming] consistency hash
[RPC] RPC remote procedure call
[concurrent programming] working mechanism and type of thread pool
XPath实现XML文档的查询
Advanced OSG collision detection
[rust notes] 07 structure
梯度下降法求解BP神经网络的简单Demo
MySQL index types B-tree and hash
Cesium for unreal quick start - simple scenario configuration
单调栈-42. 接雨水
producer consumer problem
基于SSM的校园失物招领平台,源码,数据库脚本,项目导入运行视频教程,论文撰写教程
【Rust 笔记】12-闭包
单调栈-503. 下一个更大元素 II