Dream-weaving procedures believe that many people are very familiar with the author here today and you share the powerful function of a small skill, welcome to exchange.
In the case of using 2 sets of dream-dreaming programs, how to realize the sharing of data among 2 stations? I have been searching the internet for a long time, and I have figured out a way to share it with you. Using this method to achieve the effect condition is that you buy the database it supports external calls to the database, or else it can only find his hair. The specific steps are as follows:
1, first find the database connection, in turn, find the/data/tag/sql.inc.php file and open, see the following code, your database configuration write down, save close!
$sqltag [' Dbsql '] [' dblanguage '] = ' coded format, such as UTF8, gb2312 ';
2, Landing Space Business Control Panel, in the database to complete the authorization IP, is that you use the call Data Web site IP address. Generally support, you can ask the next space quotient, the following figure:
3, where you need to call, write the following code:
{dede:sql sql= "select * from dede_archives by id desc limit 0," appname= "Dbsql"}
[field:title/]
{/dede:sql}
Called using the {Dede:sql} tag, the appname= "Dbsql" is the name in the first step of the database library link configuration.
This is one side to call the other side of the data, the same can be, two of stations can call each other data, can make the site more substantial. Welcome to join Www.321jm.com, thank you.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.