Note that there are some explanatory texts on larger screens.

plurals
  1. POFancyBox error when using PHP. Any ideas?
    primarykey
    data
    text
    <p>just going to share my code and see if anyone can spot what's causing this. </p> <p>The error reads: "The requested content cannot be loaded. Please try again later."</p> <p><strong>ShowAll.PHP:</strong></p> <pre><code> &lt;? 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(" &lt;div id='wrapper'&gt; &lt;!--start: Container --&gt; &lt;div class='container'&gt; "); $j=0; print(" &lt;div class='row'&gt; &lt;div class='span6'&gt; &lt;h1&gt;My Gallery&lt;/h1&gt; &lt;br&gt; &lt;/div&gt; &lt;div class='span6'&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--start: Row --&gt; &lt;div class='row'&gt;"); while($row = mysql_fetch_array($result)){ if ($j==6){ $j=0; print("&lt;/div&gt;"); print(" &lt;!--start: Row --&gt; &lt;div class='row'&gt;"); print("&lt;div class='span2'&gt;"); print("&lt;p&gt;&lt;div class='picture'&gt;&lt;a rel='image' href='largeimage.php?groupid=".$row['groupid']."'&gt;&lt;img src='showimage.php?id=".$row['id']."'&gt;&lt;div class='image-overlay-zoom'&gt;&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;"); print("&lt;/div&gt;"); $j++; }else{ print("&lt;div class='span2'&gt;"); print("&lt;p&gt;&lt;div class='picture'&gt;&lt;a rel='image' href='largeimage.php?groupid=".$row['groupid']."'&gt;&lt;img src='showimage.php?id=".$row['id']."'&gt;&lt;div class='image-overlay-zoom'&gt;&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;"); print("&lt;/div&gt;"); $j++; } } print("&lt;/div&gt;");?&gt; </code></pre> <p><strong>largeimage.php:</strong></p> <pre><code>&lt;?php $groupid=$_GET['groupid']; print(" &lt;img src='showimagelarge.php?groupid=".$groupid."'&gt;"); ?&gt; </code></pre> <p><strong>showimagelarge.php:</strong></p> <pre><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"]); ?&gt; </code></pre> <p><strong>showimage.php:</strong></p> <pre><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"]); ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload