Hi,
I'm new to php and looking for suggestions for the following situation:
1. I created a list of FAQ's that I want to be able to link to to further down the page (where the complete FAQ is listed)
2. I created the list using the mysql_fetch_arr ary function
3. Now I'm trying to link the FAQ list at the top of my page to the complete FAQ answer at the bottom of the page through the variable $id "
I tried this:
<a name="id" href="faq.php#i d">$id</a> (on list)
and then,
<a target="id">$id </a>
I'm thinking it is more complicated than this because the "id" refers to all
listings in my faq, not just one. I need it to work so that when $id == 2, the anchor goes only to the faq with id = 2 and when $id == 35, the anchor goes only to the faq with id = 35, etc.
Any suggestions are appreciated. I would love to learn how to do this in the future!
Thanks,
Erin
I'm new to php and looking for suggestions for the following situation:
1. I created a list of FAQ's that I want to be able to link to to further down the page (where the complete FAQ is listed)
2. I created the list using the mysql_fetch_arr ary function
3. Now I'm trying to link the FAQ list at the top of my page to the complete FAQ answer at the bottom of the page through the variable $id "
I tried this:
<a name="id" href="faq.php#i d">$id</a> (on list)
and then,
<a target="id">$id </a>
I'm thinking it is more complicated than this because the "id" refers to all
listings in my faq, not just one. I need it to work so that when $id == 2, the anchor goes only to the faq with id = 2 and when $id == 35, the anchor goes only to the faq with id = 35, etc.
Any suggestions are appreciated. I would love to learn how to do this in the future!
Thanks,
Erin
Comment