FancyBox error when using PHP. Any ideas?

mortho7

New Member
just going to share my code and see if anyone can spot what's causing this. The error reads:"The requested content cannot be loaded.Please try again later."ShowAll.PHP:\[code\] <?include_once "db.php";session_start();$gid=$_SESSION['gid'];$result = mysql_query("SELECT id,groupid FROM images where gid='".$gid."' and imagetype='1' ORDER BY id");print(" <div id='wrapper'> <!--start: Container --> <div class='container'> "); $j=0; print(" <div class='row'> <div class='span6'> <h1>My Gallery</h1> <br> </div> <div class='span6'> </div> </div> <!--start: Row --> <div class='row'>"); while($row = mysql_fetch_array($result)){ if ($j==6){ $j=0; print("</div>"); print(" <!--start: Row --> <div class='row'>"); print("<div class='span2'>"); print("<p><div class='picture'><a rel='image' href='http://stackoverflow.com/questions/13850218/largeimage.php?groupid=".$row['groupid']."'><img src='http://stackoverflow.com/questions/13850218/showimage.php?id=".$row['id']."'><div class='image-overlay-zoom'></div></a></div>"); print("</div>"); $j++; }else{ print("<div class='span2'>"); print("<p><div class='picture'><a rel='image' href='http://stackoverflow.com/questions/13850218/largeimage.php?groupid=".$row['groupid']."'><img src='http://stackoverflow.com/questions/13850218/showimage.php?id=".$row['id']."'><div class='image-overlay-zoom'></div></a></div>"); print("</div>"); $j++; } }print("</div>");?>\[/code\]largeimage.php:\[code\]<?php$groupid=$_GET['groupid'];print(" <img src='http://stackoverflow.com/questions/13850218/showimagelarge.php?groupid=".$groupid."'>");?>\[/code\]showimagelarge.php:\[code\]include_once "db.php";session_start();$gid=$_SESSION['gid'];header('Content-type: image/jpeg');$query = "SELECT image from images where groupid=". intval($_GET["groupid"])." and gid='".$gid."' and imagetype='2'";$rs = mysql_fetch_array(mysql_query($query));echo base64_decode($rs["image"]);?>\[/code\]showimage.php:\[code\]include_once "db.php";session_start();$gid=$_SESSION['gid'];header('Content-type: image/jpeg');$query = "SELECT image from images where id=". intval($_GET["id"])." and gid='".$gid."'";$rs = mysql_fetch_array(mysql_query($query));echo base64_decode($rs["image"]);?>\[/code\]
 
Back
Top