This post was last edited by lan12050972 from 2014-03-0415: 34: 12 in a news management system of the company, after the news is published, each page is displayed with a website name. I want to modify the title of each article after making a piece of news. This is also suitable for other tools. Thank you. This is the address 192.16 when the connection is opened. the browser label is displayed as the article title.
This post was last edited by lan12050972 at 15:34:12
A news management system of the company. after publishing news, each page is displayed as a website name. I want to modify the title of each article after making a piece of news. This is also suitable for other tools.
Thank you.
This is the connection address http: // 192.168.0.253: 8088/business/index. php? M = index & a = actionClass & actype = content & fid = 2 & cid = 2 it is determined by cid = X to open an article.
This is the template source code for displaying the article
<? Php echo $ SITETITLE;?>// Modify the title of the displayed article here
Company article management system
{$ Rs. title}
Edit {$ rs. aut}/{$ rs. time | date = "Y-m-d ",###}
{$ Rs. content}
This is what I did when I opened an article.
------ Solution --------------------
Then, in the php background, query the article title in the database through cid = 2 and assign a value to $ SITETITLE to upload it to the page.
------ Solution --------------------
Put this in {$ rs. title} Location
------ Solution --------------------
Reference:
Quote: reference:
Then, in the php background, query the article title in the database through cid = 2 and assign a value to $ SITETITLE to upload it to the page.
How can I query the cid number opened on the current webpage?
Didn't you open it through the link? Http: // 192.168.0.253: 8088/business/index. php? M = index & a = actionClass & actype = content & fid = 2 & cid = 2?
$ Cid = $ _ GET ['CID'];
------ Solution --------------------
Thinkphp I have never used it. you can see how you call other databases.
------ Solution --------------------
$ Rs. title is actually $ rs ['title']
So <? Php echo $ rs ['title'];?>
If not, your code does not follow the normal TP framework process ..
In fact, there is also a stupid way to respond to emergencies.
It is to use JQUERY to retrieve the title instead of the content in the title.
$ (Function (){
$ ('Title'). text ($ ('h3 '). text ());
})