PHP Tag Links: a href?

  • Thread starter Thread starter CraigM
  • Start date Start date
C

CraigM

Guest
I am making a youtube style website, that has several different categories and so on, but one problem i am having is using tags to relate clips together.

Currently i have to link all the tags with one.. well.. link:

<a REF=search.php>tag 1, tag 2, tag 3</a>

But i want to do it so that for each tag it creates its own link:

<a REF=search.php>tag 1</a>
<a href=search.php>tag 2</a>
<a href=search.php>tag 3</a>

The problem is the quantity of tags changes, so it makes it even more difficult, any ideas and solutions would be greatly appreciated, thanks.
 
I did this using php and mysql, I would select the date I wanted from the DB and ask it to output it.

<a REF=search.php>tag 1</a>
<a href=search.php>tag 2</a>
<a href=search.php>tag 3</a>

^ wrong

<a href="search.php">tag 1</a>
<a href="search.php">tag 2</a>
<a href="search.php">tag 3</a>

<a href="<?php echo="$row[link]"; ?>"><?php echo="<?php echo="$row[name]"; ?></a>
 
Back
Top