Regarding the data display problem obtained by fastadmin association model
小包子
小包子 2023-10-07 03:11:05
0
3
693

Table A associates with table B and obtains the data of table B. Now I want to output the multiple names obtained in table B as "1,2,3"

As shown in the figure微信截图_20231007030231.png微信截图_20231007030555.png 微信图片_20231007031018.png

Get multiple "patient_name" of table B through the fields of table A. How should I change the code so that the result output is of the type "1,2,3"

小包子
小包子

reply all(2)
大瓶可乐@php.cn

Then don’t you join the tables? Directly use the data in table A to look up the data in table B

PHP中文网用户-9810636

Test the reply function

  • reply Test reply? ? ?
    小包子 author 2023-10-07 15:01:41
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template