Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of nesting sql statements in runphp=yes

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of nesting sql statements in runphp=yes, which has certain reference value, and friends who need it can refer to it. I hope you all have a lot to gain after reading this article. Let's take a look at it together.

How do you nest sql statements in runphp=yes?

runphp=yes nested sql statements

Recommended Learning: Weaving Dreams CMS

We all know that many tags in dream weaving can use runphp='yes', so that we can easily use php statements to achieve the effect we want, but sometimes even need to query some of the results we need through sql statements, the following dream weaving cat gives an example to illustrate:

For example, in dede:arclist, you can use [field:writer/] to call the author's name, or you can use [field:mid/] to call the author's id number, but you can't get the author's spatial address directly. Then at this time we need to use sql statement to get the author's userid, then we can know the author's spatial address.

{dede:arclist row=5}[field:writer/] {/dede:arclist} Thank you for reading this article carefully. I hope that Xiaobian will share the method content of nested sql statements in runphp=yes to help everyone. At the same time, I hope that everyone will support you a lot. Pay attention to the industry information channel. If you encounter problems, find them. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report