"; $query = "select id, title from movies order by title"; $result = mysql_query($query) or die("Couldn't execute query:\n $query"); print "\n"; while( $r = mysql_fetch_assoc($result) ){ $selected = ($r{'id'} == $settings{$v}) ? "selected":""; print "\n"; } print ""; } function printLatestRelease($m){ global $product_url; $result .= <<
{$m{'title'}} Movie Poster {$m{'title'}}
{$m{'year'}} {$m{'genre'}} {$m{'runtime'}}
{$m{'synopsis'}} Credits
Produced by: {$m{'producedby'}} Directed by: {$m{'directedby'}} Written by: {$m{'writtenby'}} Cinematography by: {$m{'cinematography'}}
Starring: {$m{'cast'}}
END; if(!empty($m{'trailerURL'}) && !empty($m{'trailerImg'})) { $result .= <<
Play Movie {$m{'title'}} Still
Get QuickTime
END; } $result .= <<Additional Details & Specs
END; print $result; } function checkLogin($u,$p){ if($u and $p){ $query = sprintf("select * from account where user = '%s' and pass = '%s'", mysql_real_escape_string($u), mysql_real_escape_string($p)); $result = mysql_query($query) or die("Couldn't execute query:\n $query"); while( mysql_num_rows($result) ){ return 1; } } return 0; } # Used for culling blanks from array function notBlank ($var){ return ($var != ''); } ?>
Latest Releases
END; if($edit_mode){ if($movies{$latestRel1}){ printLatestRelease( $movies{$latestRel1} ); } print << \n \n \n EOL; printMenu('Internat_LatestRelease1',$settings); print $divider; if($movies{$latestRel2}){ printLatestRelease( $movies{$latestRel2} ); } printMenu('Internat_LatestRelease2',$settings); print <<\n \n EOL; } else { if($movies{$latestRel1}){ printLatestRelease( $movies{$latestRel1} ); } print $divider; if($movies{$latestRel2}){ printLatestRelease( $movies{$latestRel2} ); } } ?>