Home  >  Article  >  Backend Development  >  现在在写一个网站,遇到点有关问题,php写的网页

现在在写一个网站,遇到点有关问题,php写的网页

WBOY
WBOYOriginal
2016-06-13 10:46:12963browse

现在在写一个网站,遇到点问题,php写的网页。
现在在写一个网站,遇到点问题,php写的网页。
就是说:我抓取的页面的url中含有2012-08-31/89765,我想在地址栏中将日期隐藏,但是在后台处理时,还是以2012-08-31/89765作为link_id,帮帮忙,看有没有什么好的解决办法?我想是再在url中加一个量time来存储日期,就是看有没有其他好用的方法,还有js可以实现吗?js刚准备学,还不太会,求大神帮帮忙!!

------解决方案--------------------
楼主的意思是采集来的url后面跟有2012-08-31/89765,你想在显示的时候没有这段,但同时要将这段寸进数据库?

把采集的url找个分割点explode下,取得后面那段存到数据库。url你自己设置个跳转

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn