Files
Testing/include/analytics/hc_get_com.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

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;
?>