Jump to content

[SOLVED] php and playlists


dropfaith

Recommended Posts

this isnt working im not sure whats wrong any help?

  					<embed src="http://www.imagesbytroy.com/slideshow/imagerotator.swf" 
							width="470" 
  							height="260"
  							allowscriptaccess="always" 
  							allowfullscreen="true" 
  							flashvars="file=playlist.php?Cat=<? echo $row->Cat; ?>" />

 

 <?php
// first connect to database
$dbcnx = @mysql_connect("localhost","username","pw");
$dbselect = @mysql_select_db("foley_dropfaith");

// next, query for a list of titles, files and links.
$Cat= mysql_escape_string($_GET['Cat']);

$query = "SELECT * FROM gallery where Cat='$Cat'";
$result = mysql_query($query) or die('Error: '.mysql_error());

// third, build the playlist
header("content-type:text/xml;charset=utf-8");
echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>\n";
echo "<trackList>\n";
while($row = @mysql_fetch_array($result)) {
  echo "\t<track>\n";
  echo "\t\t<title>".$row['Title']."</title>\n";
  echo "\t\t<location>http://www.dropfaithproductions.com/test/images/".$row['uploaded']."</location>\n";
  echo "\t\t<info>http://dropfaithproductions.com/test/image.php".$row['Id']."</info>\n";
  echo "\t</track>\n";
}
echo "</trackList>\n";
echo "</playlist>\n";
?>

 

Link to comment
https://forums.phpfreaks.com/topic/123047-solved-php-and-playlists/
Share on other sites

im sorry i thought i linked  a example

 

http://dropfaithproductions.com/test/slideshow.php?Cat=Fetish   when viewing the source code it seems to be linking to the playlist but wont display any images..

http://dropfaithproductions.com/test/playlist.php?Cat=Fetish  wierd its displaying playlist.php fine as well

so im assuming  i had the error in the php file somewhere

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.