我有一个XML数据库,其中有几个博客文章。一个不同的内容和URL的PHP页面
XML例子:
<element id="12" size="square" category="portfolio">
<tag tag="printer printing 3d apple iphone 5 bumper case"></tag>
<icon class="icon-picture"></icon>
<urlpage url="/contact/contact.html"></urlpage>
<urlimage src='./Post thumbnail images/01.png'></urlimage>
<date date="8 Apr"></date>
<title>Minimal Bumper for iPhone 5 : Protect your iphone with a lightwheight and protect full case </title>
</element>
我想有基于两个主要PHP页面我的网站。 显示博客文章缩略图和链接的主要index.php页面。 还有一个single.php页面,每个博客文章可以单独显示。
当我点击index.php页面中的博客文章缩略图链接(最后,我想,就像wordpress,但没有使用它),如何加载,更改single.php页面的内容和URL?
如果这是可能的,它是如何工作的搜索引擎优化?
对不起,我是法国人。
有:'$ _GET'变量已经设置的index.php页面上 :在URL链接到该帖子的时候设置$ _GET变量? – Fabio
没有你会通过他们通过URL链接到那个帖子的时候,例如在的index.php Post 121 – Ace
我想,这应该是在你的答案 – Fabio