That shouldn't be the case. It is a general query that requires no filter. Below is the dynamic portion of the code:
<?php require_once( "webassist/caching/CachedResize_Image.php" ); ?>
<?php require_once('Connections/Celebrity.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_Celebrity, $Celebrity);
$query_rsGalleries = "SELECT * FROM tbl_gallerycategories ORDER BY CategoryName ASC";
$rsGalleries = mysql_query($query_rsGalleries, $Celebrity) or die(mysql_error());
$row_rsGalleries = mysql_fetch_assoc($rsGalleries);
$totalRows_rsGalleries = mysql_num_rows($rsGalleries);
?>
<div class="mediarow">
<?php do { ?>
<div class="mediaitem"><a href="GalleryDetail.php?Category=<?php echo $row_rsGalleries['ID']; ?>">
<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1288294863327
ob_start();
?>
<img name="thumb" width="109" height="109" alt="<?php echo $row_rsGalleries['PhotoAlt']; ?>" class="mediaimage" src="assets/gallery/<?php echo $row_rsGalleries['ID']; ?>/<?php echo $row_rsGalleries['Photo']; ?>" />
<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "assets/gallery/".$row_rsGalleries['ID']."/", "crop", "", false));
} // End Cached Resized Image: ImageCacheInstance_1288294863327
?>
</a></div>
<?php } while ($row_rsGalleries = mysql_fetch_assoc($rsGalleries)); ?>
</div>
<?php
mysql_free_result($rsGalleries);
?>