How to realize the data sharing between two stations of the Dream-weaving program

Source: Internet
Author: User
Keywords Realize that many people

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

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!

Dbsql Database Connection Configuration

// ---------------------------------------------------------------- --------

$sqltag [' Dbsql '] [' dbhost '] = ' database IP ';

$sqltag [' Dbsql '] [' dbname '] = ' database name ';

$sqltag [' Dbsql '] [' dbuser '] = ' database username ';

$sqltag [' Dbsql '] [' dbpwd '] = ' database password ';

$sqltag [' Dbsql '] [' dbprefix '] = ' database table prefix, default for Dede_ ';

$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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.