View Single Post
  #3 (permalink)  
Old 09-28-08, 02:09 PM
!Unreal's Avatar
!Unreal !Unreal is offline
Wannabe Coder
 
Join Date: Aug 2008
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by job0107 View Post
Your not putting the echo statement in the while loop and you have some syntax errors in your echo statement.

Try it like this:
PHP Code:

<?php

mysql_connect 
("localhost""unrealme_divx","password")  or die (mysql_error());
mysql_select_db ("unrealme_divx");
$id = empty($_GET['id']) ? "" $_GET['id'];
$sql mysql_query("select * from divx where id like '$id'");
if(
mysql_num_rows($sql) > 0)
{
 while(
$row mysql_fetch_assoc($sql))
 {
  echo 
'<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="720" height="360" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
         <param name="custommode" value="none" />
         <param name="previewImage" value="http://www.tld.com/image.jpg" />
         <param name="autoPlay" value="false" />
         <param name="src" value="'
.$row["url"].'" />
         <embed type="video/divx" src="'
.$row["url"].'" custommode="none" width="720" height="360" autoPlay="false"  previewImage="http://www.tld.com/image.jpg"  pluginspage="http://go.divx.com/plugin/download/"></embed>
        </object>'
;
  }
 }
?>
Thanks for cleaning that up. It works perfectly now
__________________
Free Online Movies
Reply With Quote