Guest User

Untitled

a guest
Dec 11th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 3.11 KB | None | 0 0
  1. $sql = 'SELECT ' .
  2.     'movierelease.releaseid,' .
  3.     'movierelease.movieid,' .
  4.     'movie.title,' .
  5.     'movierelease.title as local_title,' .
  6.     'movierelease.subtitle as sub_title,' .
  7.     'movierelease.episodes as episodes,' .
  8.     'movie.copyrightnotice,' .
  9.     'movie.homepage,' .
  10.     'movie.censor,' .
  11.     'movie.productioncompany,' .
  12.     'movie.prodnotes,' .
  13.     'movie.prodyear,' .
  14.     'movie.materialdirectory,' .
  15.  
  16.     'genre.name as genre,' .
  17.  
  18.     'censor.censortext,' .
  19.  
  20.    
  21.     'dvd.dvdid,' .
  22.     'dvd.screenratio as dvd_screenratio,' .
  23.     'dvd.audioformat as dvd_audioformat,' .
  24.     'dvd.spec2 as dvd_type_of_disc,' .
  25.     'dvd.spec1 as dvd_other_information,' .
  26.     'dvd.dubbed as dvd_spoken_languages,' .
  27.     'dvd.subtitled as dvd_subtitles,' .
  28.     'dvd.spec3 as dvd_replicating_company,' .
  29.     'dvd.runtime as dvd_runtime,' .
  30.     'dvd.notes as dvd_extramaterial,' .
  31.     'dvd.deadlinepack as dvd_deadlinepack,' .
  32.     'dvd.deadlineprint as dvd_deadlineprint,' .
  33.     'dvd.firstproof as dvd_firstproof,' .
  34.     'dvd.approvedaw as dvd_approvedaw,' .
  35.     'dvd.pack as dvd_pack,' .
  36.     'dvd.specialpack as dvd_specialpack,' .
  37.     'dvd.multipack as dvd_multipack,' .
  38.     'dvd.numberofdiscs as dvd_numberofdiscs,' .
  39.    
  40.     'bluray.dvdid as brid,' .
  41.     'bluray.screenratio as br_screenratio,' .
  42.     'bluray.audioformat as br_audioformat,' .
  43.     'bluray.spec2 as br_type_of_disc,' .
  44.     'bluray.spec1 as br_other_information,' .
  45.     'bluray.dubbed as br_spoken_languages,' .
  46.     'bluray.subtitled as br_subtitles,' .
  47.     'bluray.spec3 as br_replicating_company,' .
  48.     'bluray.runtime as br_runtime,' .
  49.     'bluray.notes as br_extramaterial,' .
  50.     'bluray.deadlinepack as br_deadlinepack,' .
  51.     'bluray.deadlineprint as br_deadlineprint,' .
  52.     'bluray.firstproof as br_firstproof,' .
  53.     'bluray.approvedaw as br_approvedaw,' .
  54.     'bluray.pack as br_pack,' .
  55.     'bluray.specialpack as br_specialpack,' .
  56.     'bluray.multipack as br_multipack,' .
  57.     'bluray.numberofdiscs as br_numberofdiscs,' .
  58.    
  59.     'bluray.rentalid as br_rentalid, ' .
  60.     'bluray.sellthid as br_sellthid, ' .
  61.    
  62.     'rental.releasedate as dvd_rental_releasedate,' .
  63.     'rental.ean as dvd_rental_ean,' .
  64.  
  65.     'sellth.releasedate as dvd_sell_releasedate,' .
  66.     'sellth.ean as dvd_sell_ean,' .
  67.  
  68.     'concept.name as concept_name,' .
  69.     'concept.description as concept_description,' .
  70.  
  71.     'brand.name as brand_name,' .
  72.     'brand.description as brand_description,' .
  73.  
  74.     'country.countrycode as countrycode' .
  75.  
  76.     ' FROM movierelease' .
  77.     ' LEFT JOIN movie' .
  78.     ' ON movie.movieid=movierelease.movieid' .
  79.     ' LEFT JOIN genre' .
  80.     ' ON movierelease.genreid=genre.genreid' .
  81.     ' LEFT JOIN censor' .
  82.     ' ON censor.censorid=movie.censor' .
  83.     ' LEFT JOIN dvd' .
  84.     ' ON movierelease.dvdid=dvd.dvdid' .
  85.     ' LEFT JOIN bluray' .
  86.     ' ON movierelease.blurayid=bluray.dvdid' .
  87.     ' LEFT JOIN rental' .
  88.     ' ON dvd.rentalid=rental.rentalid' .
  89.     ' LEFT JOIN sellth' .
  90.     ' ON dvd.sellthid=sellth.sellthid' .
  91.     ' LEFT JOIN concept' .
  92.     ' ON movierelease.conceptid=concept.conceptid' .
  93.     ' LEFT JOIN brand' .
  94.     ' ON movierelease.brandid=brand.brandid' .
  95.     ' LEFT JOIN country' .
  96.     ' ON movierelease.countryid=country.countryid' .
  97.    
  98.     ' WHERE country.countrycode = "' . $cc . '"' .
  99.    
  100.     ' LIMIT ' . $start . ', ' . $end;
Add Comment
Please, Sign In to add comment