Location: PHPKode > projects > Conquest Flex Viewer > getImage.php
<images>
<?php
	include_once("inc/settings.php");
	include_once("inc/functions.php");
	$sId = $_GET["id"];
	$modality = $_GET["m"];
	$num = $_GET["num"];
	
	$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());
	$imgDCM = mysql_result($res,$num,"objectFile");
	$imgNum = mysql_result($res,$num,"ImageNumbe");
	?>
		<image>
			<fileName><?php echo $imgDCM; ?></fileName>
			<jpgFile><?php echo "temp/" . str_replace("\\","/",convertFileNameToJPG($imgDCM)); ?></jpgFile>
			<convertJpg><?php echo convertImage($imgDCM); ?></convertJpg>
			<thumb><?php echo makeThumb(convertFileNameToJPG($imgDCM)); ?></thumb>
			<imageNum><?php echo $imgNum; ?></imageNum>
		</image>
	<?php
?>
</images>
Return current item: Conquest Flex Viewer