Chrisj Posted June 22, 2010 Share Posted June 22, 2010 I'm using a php video script where you can select a thumbnail image and the corresponding video plays in a pop-up box. I've added a php JukeBox script for videos, where thumbnails are displayed and the corresponding video plays on another page (instead of in a pop-up box) which works successfully. However, I'm trying to integrate the existing pop-up box code into the jukebox php page, to see if I can get the jukebox video to play in the pop-up box. The jukebox php page code is at the bottom of this posting. I'm trying to integrate the pop-up box line of code into the jukebox line of code. Pop-up box line of code: <a href="videos/[blk1.vid_id;block=div]/" rel="gb_page_center[600, 440] "> Jukebox line of code: <artistLink>../play.php?vid=<?=$results['indexer']; ?>&src=jukebox</artistLink>Can you help me? Here is the entire jukebox.php page: <?php include("../classes/config.php");?> <artworkinfo> <? $query = "select * from videos where viewtime<>'0000-00-00 00:00:00' and public_private='public' AND approved ='yes' AND promoted ='yes' limit 10"; // Max 10!"; $db=mysql_connect ($dbhost,$dbusername,$dbpassword) or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ($dbname); $num_rows = mysql_num_rows(mysql_query("select * from videos WHERE public_private = 'public' AND promoted = 'yes' AND approved ='yes'")); $result = mysql_query($query) or die ('Query Error: ' . mysql_error()); while ($results = mysql_fetch_array($result)) { ?> <albuminfo> <artLocation>../uploads/play_thumbs/<?=$results['video_id']; ?>.jpg</artLocation> <font color="#000000"><artist> CLICK HERE !!</artist></font> <albumName><?=$results['title']; ?></albumName> <artistLink>../play.php?vid=<?=$results['indexer']; ?>&src=jukebox</artistLink> <albumLink>../play.php?vid=<?=$results['indexer']; ?>&src=jukebox</albumLink> </albuminfo> <? } mysql_close(); ?> </artworkinfo> Quote Link to comment 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.