Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-15-2005, 06:20 PM
varg
Unregistered

Posts: n/a

You'll need a database with at least two tables (name and url)
then use something like this code to generate a list of all the rows (entries) in that database.
PHP Code:
<?
$sql = mysql_query("SELECT * FROM database ") or die (mysql_error());

while ($row = mysql_fetch_array($sql)) {
$name = $row["name"];
$url = $row["url"];

echo "<a href=\"folder/$url.mp3\">$name</a><br />";

}

?>
I think that should work, but I'm still kinda new to php coding.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MP3/Ipod? ShArP General Chat 15 08-27-2007 11:46 AM
Undefined index: doupload on line 130 Guest phphq.Net Forums 6 05-22-2005 12:06 AM
index.php?act=test&cat=5 Guest phphq.Net Forums 0 02-02-2005 04:46 PM
Mp3 SMITIE Sigs and Graphics 15 11-21-2004 05:17 PM
LINKS option on main index DevilDog#1 Feedback / Novahq.net Support 0 07-29-2002 03:50 PM


All times are GMT -5. The time now is 07:02 AM.




Powered by vBulletin®