require("cadmcon.php"); //query for our college $sql = "select * from loreto_college"; $result = mysqli_query($conn,$sql); while($row = mysqli_fetch_array($result)) { $writeup = $row['writeup']; $image = $row['image']; } $mysock = getimagesize("$image"); $width = $mysock[0]; $height = $mysock[1]; $target = 350; if ($width > $height) { $target = 400; $percentage = ($target / $width); } else { $percentage = ($target / $height); } $width = round($width * $percentage); $height = round($height * $percentage); $j=0; $sql3 = "select * from leftmenu where active = 1 order by dorder"; $result3 = mysqli_query($conn,$sql3); while($userow3 = mysqli_fetch_array($result3)) { $tmp4= array( 0 => $userow3['id'], 1 => $userow3['name'], 2 => $userow3['link'], 3 => $userow3['olink'], 4 => $userow3['blink'], ); $strmst3[$j++] = $tmp4; } ?> Loreto College, Kolkata