Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.92 KB | None | 0 0
  1. <?php /*?><?
  2. $id=$_GET['id'];
  3. mysql_connect('localhost', 'root' , '');
  4. @mysql_select_db('xbmc_video') or die( "Unable to select database");
  5. $query="SELECT * FROM movie where idmovie='$id'";
  6. $result=mysql_query($query);
  7. $num=mysql_numrows($result);
  8. mysql_close();
  9.  
  10.  
  11. $filename="SELECT movie.idmovie, files.strFilename
  12. FROM movie, files
  13. WHERE movie.idfile = files.idfile and idmovie ='<? echo $id; ?>'" ;
  14.      
  15.  
  16. $id=mysql_result($result,$i,"idmovie");
  17. $movietitle=mysql_result($result,$i,"c00");
  18. $movieyear=mysql_result($result,$i,"c07");
  19. $movieimdb=mysql_result($result,$i,"c09");
  20. $moviethumb=mysql_result($result,$i,"c08");
  21. $moviefanart=mysql_result($result,$i,"c20");
  22.  
  23. $regexp1 ="/http:\/(.*?).jpg/";
  24.  
  25. preg_match_all($regexp1, $moviethumb, $test);
  26. preg_match_all($regexp1, $moviefanart, $moviefanartE);
  27.  
  28. ?>
  29. <?php */?>
  30.  
  31. <?php
  32. $id=$_GET['id'];
  33. mysql_connect('localhost', 'root' , '');
  34. @mysql_select_db('xbmc_video') or die( "Unable to select database");
  35. $query = "SELECT
  36. movie.idmovie       as id,
  37. movie.c00           as movietitle,
  38. movie.c01           as moviestoryshort,
  39. movie.c03           as movietagline,
  40. movie.c04           as c04,
  41. movie.c05           as movieimdbrating,
  42. movie.c07           as movieyear,
  43. movie.c08           as movieposterurl,
  44. movie.c09           as movieimdburl,
  45. movie.c11           as movieruntime,
  46. movie.c12           as movierating,
  47. movie.c14           as moviegenre,
  48. movie.c15           as moviedirector,
  49.  
  50. files.strFilename   as moviefilename
  51.  
  52. FROM movie, files
  53. WHERE movie.idfile = files.idfile and idmovie ='$id'";
  54.      
  55. $result = mysql_query($query) or die(mysql_error());
  56. $posterurl = array();
  57.  
  58.  
  59. // Print out the contents of each row into a table
  60. while($row = mysql_fetch_array($result))
  61.  
  62. {
  63. ?>
  64.  
  65. <table border="1" cellspacing="0" cellpadding="0">
  66.   <tr>
  67.     <th scope="col">Movie</th>
  68.   </tr>
  69.   <tr>
  70.     <td><? echo $row['id']; ?></td>
  71.   </tr>
  72.   <tr>
  73.     <td><? echo $row['movietitle']; ?></td>
  74.   </tr>
  75.   <tr>
  76.     <td><? echo $row['moviefilename']; ?></td>
  77.   </tr>
  78.   <tr>
  79.     <td><? echo $row['movieposterurl']; ?></td>
  80.   </tr>
  81. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement