Playlist different from displayed list in source html code [message #185781] |
Fri, 09 May 2014 03:59 |
Mr Oldies
Messages: 241 Registered: October 2013
Karma:
|
Senior Member |
|
|
http://mroldies.net/radio/radio1.php
View page source and you will see the listed songs in the code do not match
the listed songs in the playlist. Why?
The songs in the playlist are called as named just fine.
Assume $number=40 for reference.
$x=0;
while ($x<$number){
$tune=substr($master[$x],0,6);
echo $tune;
$query = "SELECT * FROM picker where songID='$tune'";
if ($result = $mysqli->query($query)) {
/* fetch object array */
while ($row = $result->fetch_assoc()) {
// echo $row["songID"],$row["title"],$row["artist"];
// echo "<br>";
$y=substr($tune,0,2);
$year="19$y";
echo "<li class='aplay'>";
echo $row["songID"];
$song=$row['songID'].".mp3";
echo "<a href='#' data-src='http://mroldies.net/audio/$year/$song'>";
$xx=$x+1;
echo $xx.")....".$row["title"]."<br>".$row["artist"]." - ".$year;
echo "</a>";
echo "</li>";
echo "\n";
}
/* free result set */
$result->close();
}
$x++;
}
|
|
|