当前位置:网站首页>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 }
边栏推荐
- MySQL 8
- [public key cryptography] ECC elliptic cryptosystem (implementing ElGamal encryption method)
- 请求参数的发送和接收
- 100 GIS practical application cases (78) - Multi compliance database design and data warehousing
- Deep parsing (picture and text) JVM garbage collector (II)
- 【Rust笔记】06-包和模块
- [concurrent programming] concurrent tool class of thread
- matlab神经网络所有传递函数(激活函数)公式详解
- Constraintlayout's constraintset dynamically modifies constraints
- Collection interface
猜你喜欢
请求参数的发送和接收
ES6 promise learning notes
Servlet的生命周期
梯度下降法求解BP神经网络的简单Demo
Deep parsing JVM memory model
Detailed explanation of all transfer function (activation function) formulas of MATLAB neural network
Visual Studio (VS) shortcut keys
Concurrent programming (VI) ABA problems and solutions under CAS
Animation_ IK overview
Collection interface
随机推荐
Detailed explanation of all transfer function (activation function) formulas of MATLAB neural network
Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)
Chocolate installation
Es8 async and await learning notes
UE4 source code reading_ Bone model and animation system_ Animation compression
Annotations simplify configuration and loading at startup
redis集群系列四
Use of ue5 QRcode plug-in
matlab神經網絡所有傳遞函數(激活函數)公式詳解
Unity learning notes
UE4 source code reading_ Bone model and animation system_ Animation process
URL backup 1
[set theory] order relation (total order relation | total order set | total order relation example | quasi order relation | quasi order relation theorem | bifurcation | quasi linear order relation | q
【Rust 笔记】08-枚举与模式
22-05-26 西安 面试题(01)准备
Downward compatibility and upward compatibility
MySQL containerization (1) docker installation MySQL
Unity notes 1
Unity editor expansion - draw lines
二进制转十进制,十进制转二进制