当前位置:网站首页>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 }
边栏推荐
- [concurrent programming] thread foundation and sharing between threads
- Installation of PHP FPM software +openresty cache construction
- Notes on understanding applets 2022/7/3
- Osgearth starry background
- [concurrent programming] concurrent security
- Markdown learning
- Vscode, idea, VIM development tool shortcut keys
- Intersectionpicker in osgearth
- Dealing with duplicate data in Excel with xlwings
- Unity editor expansion - controls, layouts
猜你喜欢
100 GIS practical application cases (78) - Multi compliance database design and data warehousing
Installation of PHP FPM software +openresty cache construction
Deeply understand the underlying data structure of MySQL index
Alibaba canal actual combat
单调栈-84. 柱状图中最大的矩形
详解sizeof、strlen、指针和数组等组合题
第一个Servlet
Markdown learning
Unity4.3.1 engine source code compilation process
Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)
随机推荐
Markdown learning
Unity editor expansion - scrolling list
Development experience and experience
Some understandings of 3dfiles
注解简化配置与启动时加载
【Rust笔记】05-错误处理
Transmit pictures with Base64 encoding
UE4 source code reading_ Bone model and animation system_ Animation compression
Constraintlayout's constraintset dynamically modifies constraints
了解小程序的笔记 2022/7/3
Unity editor expansion - controls, layouts
Swagger document configuration
Concurrent programming (VI) ABA problems and solutions under CAS
Unity editor expansion - the design idea of imgui
php-fpm软件的安装+openresty高速缓存搭建
C language student management system based on linked list, super detailed
Osgearth target selection
[redis] redis persistent RDB vs AOF (source code)
[MySQL] MySQL Performance Optimization Practice: introduction of database lock and index search principle
[public key cryptography] ECC elliptic cryptosystem (implementing ElGamal encryption method)