Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dede calls the method of the first picture of the article

Shulou Source: shulou.com Published: 2022-06-02 04:43:08 11月13日 Update

This article mainly introduces the method of dede calling the first picture of the article, the article is very detailed, has a certain reference value, interested friends must read it!

How does dede call the first picture of the article?

Two operations are required

The first step is to modify the include/extend.func.php file and insert the function at the bottom to query the article attached table. If you need to query the picture set, you can change the name of the table.

The code is as follows:

Function GetFirstImg ($arcid) {global $dsql;$query= "SELECT body FROM `dede_ addonSecretle` where aid='$arcid'"; $row = $dsql- > GetOne ($query); $preg = "/

Tags: Articles pictures content fields methods codes functions time tags queries two values interests picture collections guys buddies arrays files more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi MySQL OPPO Reno vpn Xiaomi