Replacing header fields when querying data with PHP MySQL does not support Chinese
去如烟
去如烟 2019-04-07 23:57:34
0
3
1276

Writing like this doesn’t work

field(['id'=>'Number','name'=>'Name','url'=>'Website'])

You can write it like this

->field(['id'=>'m','name'=>'n','url'=>'u' ])

The SQL statement is like this

SELECT `id` AS `m`,`name` AS `n`,`url` AS `u` FROM `websites` WHERE `id` = 4 LIMIT 1屏幕快照 2019-04-07 下午11.56.40.png

屏幕快照 2019-04-07 下午11.55.30.png

去如烟
去如烟

reply all(1)
Peter-Zhu

After ThinKPHP5.1.20, the use of Chinese aliases is no longer supported, please pay attention

  • reply Thanks
    去如烟 author 2019-04-09 00:42:05
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template