32 lines
858 B
PHP
32 lines
858 B
PHP
<?php
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/include/analytics/');
|
|
include(PATHTOINCLUDES."base.php");
|
|
$em="";
|
|
|
|
|
|
$hcslider="";
|
|
$hcsql="SELECT
|
|
`halloween_contest`.`hcidu`,
|
|
`halloween_contest`.`hcuid`,
|
|
`halloween_contest`.`hc_name`,
|
|
`halloween_contest`.`hc_ext`
|
|
FROM
|
|
`halloween_contest`
|
|
|
|
ORDER BY
|
|
`halloween_contest`.`hcidu` ASC";
|
|
|
|
$hcresult=$database->database_query($hcsql) or $em .= $database->database_error();
|
|
while ($x = $database->database_fetch_assoc($hcresult)) {
|
|
$hcpuid=$x["hcuid"];
|
|
$hcalt="Halloween Contest ".$x["hcidu"];
|
|
$hciname=$x["hc_name"];
|
|
$hciext=$x["hc_ext"];
|
|
|
|
$theudir="/mini-upload-form/uploads/".$hcpuid."/";
|
|
$simg=$theudir.$hciname."_thumbnail.".$hciext;
|
|
$hcslider .= '<a href="/halloween_contest.php"><img class="rsImg" src="'.$simg.'" alt="'.$hcalt.'" /></a>';
|
|
}
|
|
|
|
echo $hcslider;
|
|
?>
|