Royalty-Free Music'; print '
'; $link = mysql_pconnect("legacy-db", "incomp", '!2LT3Wj=$tyN?9Ce'); if ( !$link ) { die('Could not connect: ' . mysql_error()); exit; } $dbh = mysql_select_db("music", $link); if ( !$dbh ) { die('Could not connect: ' . mysql_error()); } function mp3url( $name ) { $name = str_replace( " ", "%20", $name ); $path = "/music/royalty-free/mp3-royaltyfree"; return( "$path/$name" ); } function altImage ( $number ) { print ''; print '
';
// print '[ view collection ]
'; print ''; return 1; } function entry( $entry ) { $file = $entry['filename']; $collection = $entry['collection']; $filenamelength = strlen($entry['filename']); print '$query
"; if (isset($_COOKIE["musicsort"]) && ($_COOKIE["musicsort"] == "slow") ){ $query .= " ORDER BY p.bpm, p.uploaded DESC "; } elseif (isset($_COOKIE["musicsort"]) && ($_COOKIE["musicsort"] == "fast") ){ $query .= " ORDER BY p.bpm DESC, p.uploaded DESC "; } elseif (isset($_COOKIE["musicsort"]) && ($_COOKIE["musicsort"] == "long") ){ $query .= " ORDER BY p.length DESC, p.uploaded DESC "; } elseif (isset($_COOKIE["musicsort"]) && ($_COOKIE["musicsort"] == "short") ){ $query .= " ORDER BY p.length, p.uploaded DESC "; } elseif (isset($_COOKIE["musicsort"]) && ($_COOKIE["musicsort"] == "recent")){ $query .= " ORDER BY p.uploaded DESC "; } else { // $query .= " ORDER BY p.uploaded DESC "; // $query .= " ORDER BY p.uploaded DESC "; $query .= " ORDER BY p.uploaded DESC "; } $result = mysql_query( $query, $link ); if ( !$result ) { die( "| ' . "\n"; print ' | Tempo | ' . "\n"; print 'Genre | ' . "\n"; print 'Length | ' . "\n"; print '
|---|
There are currently no entries that match your criteria. Try selecting fewer feels.
'; } if ( !isset( $search ) ) { print ' '; } ?>Okay. How about now?
This work is licensed under a
Creative Commons License.
Additional Licenses available.