创建动态链接 [英] Creating Dynamic Links
问题描述
好的,这是一个新问题,我很抱歉,但是我回到网页设计后,就像5年后我即使我知道这个问题似乎无法解决它的问题仍然困难。
我要做的是创建一个页面,该页面提取数据库页面中的项目列表,列出项目并使用item_id创建动态链接,使item_name成为链接更详细的页面。
因此,当他们点击Item_name时,它会使用item_id来显示该项目的更多详细信息,而不是所有项目的完整列表。
>
我陷入困境的原因是,由于某些原因而且我知道这将是一个简单的修复,当你查看项目列表并将鼠标移到item_name上以查看链接时id显示href,但是id它是空白的,当你点击链接它有一个错误,我确定哪个连接到ID丢失。
我发布链接到我玩的页面得到一个处理PHP和源代码的句柄,以便有人可以快速给我这个,所以我可以继续我的生活。感谢给予的任何帮助。谢谢..
(请注意,在此页面上链接的名称上的链接末尾应该有一个数字)
< a rel =nofollowhref =http://www.elitegamers.us/Database_Test/list.phptarget =_ blank> http://www.elitegamers.us/Database_Test/list.php
这是详细信息页面有错误:
http://www.elitegamers.us/Database_Test/view.php?id=
list.php源代码如下
OK heres a newb question and I''m sorry for it, but im getting back into web design after like 5 years off and im stuck even though i should know the problem i cant seem to correct it atm.
What I''m trying to do is create a page that pulls up a list of items in a DB page, lists the items and creates a dynamic link using the item_id making the item_name a link to a more detailed page.
So that when they click the Item_name it uses the item_id to bring up more details just on that one item instead of a complete list of all the items.
Where im stuck is, for some reason and i know this is gonna be an easy fix, that when you view the list of items and mouse over the item_name to see the link the id shows the href, but the id is blank on it and when you click on the link it has a fault im sure which is connected to the id missing.
I''m posting the link to the pages im playing with to get a handle back on php and the source code so that someone can give me a quick hand with this, so i can move on with my life. Appreciate any help given. Thanks..
(note that on this page the links should have a number at the end of the link on the names)
http://www.elitegamers.us/Database_Test/list.php
And this is the details page which has the fault:
http://www.elitegamers.us/Database_Test/view.php?id=
Source Code as follows for list.php
推荐答案
Heya,Lazoris。欢迎来到TSDN!
发布源代码时请使用CODE标签:
[CODE = php]
PHP代码就在这里。
[/ CODE]
[CODE = html]
HTML代码就在这里。
[/ CODE]
Heya, Lazoris. Welcome to TSDN!
Please use CODE tags when posting source code:
[CODE=php]
PHP code goes here.
[/CODE]
[CODE=html]
HTML code goes here.
[/CODE]
哦btw第21行列表view.php是多余的尝试原始代码并忘记在我发布之前擦除它。所以忽略第21行。我的问题是针对第19行,因为那是我正在尝试用于新页面详细信息的链接。
oh btw line 21 in the list view.php is redundant was trying the original code over and forgot to erase it before i posted it. so ignore line 21. My question is for line 19 since thats the link that im using for the new page details im trying to do.
Heya,Lazoris。
>
尝试使用
Heya, Lazoris.
Try using
这篇关于创建动态链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!