dropfaith Posted September 6, 2008 Share Posted September 6, 2008 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"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/123047-solved-php-and-playlists/ Share on other sites More sharing options...
.josh Posted September 6, 2008 Share Posted September 6, 2008 Would help if you explained what "It's not working" means. Quote Link to comment https://forums.phpfreaks.com/topic/123047-solved-php-and-playlists/#findComment-635379 Share on other sites More sharing options...
dropfaith Posted September 6, 2008 Author Share Posted September 6, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/123047-solved-php-and-playlists/#findComment-635384 Share on other sites More sharing options...
.josh Posted September 6, 2008 Share Posted September 6, 2008 Okay so I view source code and I don't see anything from that posted code being echoed, not even the stuff outside of your while loop, so...are you sure that that code snippet is uploaded or relevant to that page? Quote Link to comment https://forums.phpfreaks.com/topic/123047-solved-php-and-playlists/#findComment-635398 Share on other sites More sharing options...
dropfaith Posted September 6, 2008 Author Share Posted September 6, 2008 yea i just looked again and that code is there search for it hit find if you can find it its right below the header photoset io just got it working Quote Link to comment https://forums.phpfreaks.com/topic/123047-solved-php-and-playlists/#findComment-635402 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.