Location: PHPKode > projects > Conquest Flex Viewer > getImages.php
<images>
<?php
	include_once("inc/settings.php");
	include_once("inc/functions.php");
	$sId = $_GET["id"];
	
	$sql = "SELECT * FROM dicomimages WHERE seriesInst = '$sId'";
	@mysql_connect($dbhost,$dbuser,$dbpass) or die("ERROR--CAN'T CONNECT TO SERVER");
	@mysql_select_db($dbname) or die("ERROR--CAN'T CONNECT TO DB");
	$res = mysql_query($sql) or die("Error: " . mysql_error());
	$num 	= mysql_num_rows($res);
	for($i=0;$i<$num;$i++)
	{
		$imgDCM = mysql_result($res,$i,"objectFile");
		?>
			<image>
				<fileName><?php echo $imgDCM; ?></fileName>
				<jpgFile><?php echo "temp\\" . convertFileNameToJPG($imgDCM); ?></jpgFile>
				<convertJpg><?php echo convertImage($imgDCM); ?></convertJpg>
				<thumb><?php echo makeThumb(convertFileNameToJPG($imgDCM)); ?></thumb>
			</image>
		<?php
	}
?>
</images>
Return current item: Conquest Flex Viewer