当前位置:网站首页>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 }
边栏推荐
- [public key cryptography] ECC elliptic cryptosystem (implementing ElGamal encryption method)
- Development experience and experience
- php-fpm软件的安装+openresty高速缓存搭建
- Unity editor expansion - the framework and context of unity imgui
- Mysql容器化(1)Docker安装MySQL
- [rust notes] 09- special types and generics
- Gradle's method of dynamically modifying APK package name
- 【Rust笔记】06-包和模块
- P1596 [USACO10OCT]Lake Counting S
- Allocation exception Servlet
猜你喜欢

MySQL three logs

数据库原理期末复习

Unity Editor Extension - drag and drop

请求参数的发送和接收

Graphics_ Learnopongl learning notes

Es8 async and await learning notes

Redux - learning notes

Unity editor expansion - scrolling list

Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)

Monotonic stack -503 Next bigger Element II
随机推荐
22-06-27 Xian redis (01) commands for installing five common data types: redis and redis
Some understandings of 3dfiles
第一个Servlet
Display terrain database on osgearth ball
Use of ue5 QRcode plug-in
Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
[concurrent programming] thread foundation and sharing between threads
Huawei interview summary during the epidemic
[rust notes] 09- special types and generics
22-06-27 西安 redis(01) 安装redis、redis5种常见数据类型的命令
Osgearth north arrow display
Intersectionpicker in osgearth
Downward compatibility and upward compatibility
URL backup 1
【Rust 笔记】11-实用特型
VIM learning notes from introduction to silk skating
Monotonic stack -42 Connect rainwater
Eating fruit
Introduction to hexadecimal coding
Alibaba canaladmin deployment and canal cluster Ha Construction