FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Playlist different from displayed list in source html code
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Playlist different from displayed list in source html code [message #185781] Fri, 09 May 2014 03:59 Go to previous message
Mr Oldies is currently offline  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++;
}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Displaying an array value in two columns
Next Topic: Message Subject
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 18:46:48 GMT 2024

Total time taken to generate the page: 0.04035 seconds