Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS FancyBox error when using PHP. Any ideas?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41341
    aregowe
    Participant

    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.”

    http://i.imgur.com/1sD8J.png

    **ShowAll.PHP:**

    include_once “db.php”;
    session_start();
    $gid=$_SESSION;
    $result = mysql_query(“SELECT id,groupid FROM images where gid='”.$gid.”‘ and imagetype=’1’ ORDER BY id”);
    print(”

    “);
    $j=0;
    print(“

    My Gallery

    “);
    while($row = mysql_fetch_array($result)){
    if ($j==6){
    $j=0;
    print(“

    “);
    print(“

    “);
    print(“

    “);
    print(“

    “);
    print(“

    “);
    $j++;
    }else{
    print(“

    “);
    print(“

    “);
    print(“

    “);
    $j++;
    }
    }
    print(“

    “);?>

    **largeimage.php:**

    print(” “);

    ?>

    **showimagelarge.php:**

    include_once “db.php”;

    session_start();

    $gid=$_SESSION;

    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”]);

    ?>

    **showimage.php:**

    include_once “db.php”;

    session_start();

    $gid=$_SESSION;

    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”]);

    ?>

    #117434
    aregowe
    Participant

    Also, my initialization of FancyBox is:

    #117489
    __
    Participant

    That error is not produced by the code you posted.

    Maybe it’s from fancybox?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.