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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.