Help With PHP Code
I have modified some code so I can use php to do a mysql search of my music catalog. It displays it in a nice format on a second page. I would like to make part or all of the info clickable so I can request the song to be played through shoutcast.
This is probably a stupid question, but I just can't figure out how to create a hyperlink out of this data. Here is the actual code that displays. PHP Code:
Adam Windisch |
I'm not sure what you are looking for other than changing:
echo "<b>Artist: <P2>$artist</P2> Title: <P2>$title</P2><br>Album: <P2>$album</P2></b> Year: <P2>$year</P2><br>Song # <P2>$intid</P2> Genre: <P2>$genre</P2><br> Length: <P2>$length ms or $length2 minutes.</P2><br><hr>"; To: echo "<b>Artist: <P2>$artist</P2> Title: <P2><a href='http://url.you.want/to/link/to'>$title</a></P2><br>Album: <P2>$album</P2></b> Year: <P2>$year</P2><br>Song # <P2>$intid</P2> Genre: <P2>$genre</P2><br> Length: <P2>$length ms or $length2 minutes.</P2><br><hr>"; |
Ok, I tried that before, but that worked. I must have missed a quote or something. Thanks for your help!
|
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
|
Sorry about that, if I have more PHP questions, I'll put it in programming.
|
All times are GMT -5. The time now is 05:40 PM. |