Parse error

Pagina: 1
Acties:
  • 72 views sinds 30-01-2008

  • Maverick2001
  • Registratie: Februari 2001
  • Laatst online: 08-09 23:45

Maverick2001

Never look back

Topicstarter
Het volgende script zou op regel 22 een bevatten.... Ik zit er al een tijdje naar te kijken maar kan het niet binden....:

<?PHP
if ($vpg) {
include ("gb.php");
$pt = "";
include ("header.php");
print ("<p> ");
if ($id == 0) {
print ("<p>No one has signed this guestbook\n<p>);
} else {
if ($vpg == 1) {
$rpg = $pg;
} else {
$rpg = $pg-($vpg-1);
}
$xvpg = $vpg-1;
$slist = $id-(8*$xvpg);
$elist = $slist-7;
if ($slist > $id) {
$slist = $id;
}
$elistcheck = "1";
if ($elist < $elistcheck) {
$elist = $elistcheck;
}
print ("<table align=\"center\" width=80% border=1 cellpadding=0 cellspacing=0>\n");
print ("<tr><td><div align=\"center\"><a href=\"sign.php\">Sign Guestbook</a>\n<br>View Page:");
for ($ipg = 1; $ipg <= $pg; $ipg++){
if ($vpg == $ipg) {
print (" $ipg");
} else {
print (" <a href=\"view.php?vpg=$ipg\">$ipg</a>");
}
}
print ("</div></td></tr></table><hr size=2 align=center width=80%>\n");
for ($indx = $slist; $indx >= $elist; $indx--) {
print ("<table align=\"center\" width=80% border=0 cellpadding=5 cellspacing=5>\n");
if ($e["$indx"]["n"]) {
$e["$indx"]["n"] = ereg_replace("\\\'","'",$e["$indx"]["n"]);
$e["$indx"]["n"] = ereg_replace("\\\"", """, $e["$indx"]["n"]);
print ("<tr><td align=\"right\" width=80px><p>Name:</td><td><p>{$e["$indx"]["n"]}</td></tr>\n");
} else {
print ("<tr><td align=\"right\" width=80px><p>Name:</td><td><p>(anonymous)</td></tr>\n");
}
if ($e["$indx"]["m"]) {
print ("<tr><td align=\"right\" width=80px style=\"border-top: 1px solid #CCCCCC\"><p>Email:</td><td style=\"border-top: 1px solid #CCCCCC\"><p><a href=\"mailto:{$e["$indx"]["m"]}\">{$e["$indx"]["m"]}</a></td></tr>\n");
}
if ($e["$indx"]["h"]) {
print ("<tr><td align=\"right\" width=80px style=\"border-top: 1px solid #CCCCCC\"><p>Homepage:</td><td style=\"border-top: 1px solid #CCCCCC\"><p><a href=\"http://{$e["$indx"]["h"]}\" target=\"_blank\">http://{$e["$indx"]["h"]}</a></td></tr>\n");
}
if ($e["$indx"]["c"]) {
$e["$indx"]["c"] = ereg_replace("\\\"", "'", $e["$indx"]["c"]);
$e["$indx"]["c"] = ereg_replace("\\\"", """, $e["$indx"]["c"]);
$e["$indx"]["c"] = ereg_replace("\n","<br>",$e["$indx"]["c"]);
print ("<tr><td align=\"right\" width=10% style=\"border-top: 1px solid #CCCCCC\"><p>Comments:</td><td style=\"border-top: 1px solid #CCCCCC\"><p>{$e["$indx"]["c"]}</td></tr>\n");
}
print ("</table><hr size=2 align=center width=80%>\n");
//
}
print ("<table align=\"center\" width=80% border=1 cellpadding=0 cellspacing=0>\n");
print ("<tr><td><div align=\"center\">View Page:");
for ($ipg = 1; $ipg <= $pg; $ipg++){
if ($vpg == $ipg) {
print (" $ipg");
} else {
print (" <a href=\"view.php?vpg=$ipg\">$ipg</a>");
}
}
print ("<br><a href=\"sign.php\">Sign Guestbook</a>\n");
print ("</div></td></tr></table>\n");
}
include ("footer.php");
} else {
header ("Location: view.php?vpg=1");
}

Pura Vida


  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

debuggen moet je zelf doen
zie ook : [topic=397053/1/100]

Doet iets met Cloud (MS/IBM)


  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

PHP:
1
<?if ($vpg) {    include ("gb.php");    $pt = "";    include ("header.php");    print ("<p>&amp;nbsp;");    if ($id == 0)     {        print ("<p>No one has signed this guestbook\n<p>);    }     else     {        if ($vpg == 1)         {            $rpg = $pg;        }         else         {            $rpg = $pg-($vpg-1);        }        $xvpg = $vpg-1;        $slist = $id-(8*$xvpg);        $elist = $slist-7;        if ($slist > $id)         {            $slist = $id;        }        $elistcheck = "1";        if ($elist < $elistcheck)         {            $elist = $elistcheck;        }        print ("<table align="center\" width=80% border=1 cellpadding=0 cellspacing=0>\n");        print ("<tr><td><div align=\"center\"><a href=\"sign.php\">Sign Guestbook</a>\n<br>View Page:");        for ($ipg = 1; $ipg <= $pg; $ipg++)        {            if ($vpg == $ipg)             {                print (" $ipg");            }            else             {                print (" <a href=\"view.php?vpg=$ipg\">$ipg</a>");            }        }        print ("</div></td></tr></table><hr size=2 align=center width=80%>\n");        for ($indx = $slist; $indx >= $elist; $indx--)         {            print ("<table align=\"center\" width=80% border=0 cellpadding=5 cellspacing=5>\n");            if ($e["$indx"]["n"])             {                $e["$indx"]["n"] = ereg_replace("\\\'","&amp;#39;",$e["$indx"]["n"]);                $e["$indx"]["n"] = ereg_replace("\\\&amp;#34;", "&amp;#34;", $e["$indx"]["n"]);                print ("<tr><td align=\"right\" width=80px><p>Name:</td><td><p>{$e["$indx"]["n"]}</td></tr>\n");            }             else             {                print ("<tr><td align=\"right\" width=80px><p>Name:</td><td><p>(anonymous)</td></tr>\n");            }            if ($e["$indx"]["m"])             {                print ("<tr><td align=\"right\" width=80px style=\"border-top: 1px solid #CCCCCC\"><p>Email:</td><td style=\"border-top: 1px solid #CCCCCC\"><p><a href=\"mailto:{$e["$indx"]["m"]}\">{$e["$indx"]["m"]}</a></td></tr>\n");            }            if ($e["$indx"]["h"])             {                print ("<tr><td align=\"right\" width=80px style=\"border-top: 1px solid #CCCCCC\"><p>Homepage:</td><td style=\"border-top: 1px solid #CCCCCC\"><p><a href=\"http://{$e["$indx"]["h"]}\" target=\"_blank\">http://{$e["$indx"]["h"]}</a></td></tr>\n");            }            if ($e["$indx"]["c"])             {                $e["$indx"]["c"] = ereg_replace("\\\"", "&amp;#39;", $e["$indx"]["c"]);                $e["$indx"]["c"] = ereg_replace("\\\&amp;#34;", "&amp;#34;", $e["$indx"]["c"]);                $e["$indx"]["c"] = ereg_replace("\n","<br>",$e["$indx"]["c"]);                print ("<tr><td align=\"right\" width=10% style=\"border-top: 1px solid #CCCCCC\"><p>Comments:</td><td style=\"border-top: 1px solid #CCCCCC\"><p>{$e["$indx"]["c"]}</td></tr>\n");            }            print ("</table><hr size=2 align=center width=80%>\n");        //        }        print ("<table align=\"center\" width=80% border=1 cellpadding=0 cellspacing=0>\n");        print ("<tr><td><div align=\"center\">View Page:");        for ($ipg = 1; $ipg <= $pg; $ipg++)        {            if ($vpg == $ipg)             {                print (" $ipg");            } //STOND ER NIET        }         else         {            print (" <a href=\"view.php?vpg=$ipg\">$ipg</a>");        }    }    print ("<br><a href=\"sign.php\">Sign Guestbook</a>\n");    print ("</div></td></tr></table>\n");//} DEZE IS TEVEEL    include ("footer.php");} else {    header ("Location: view.php?vpg=1");}?>

de oplossing

Doet iets met Cloud (MS/IBM)


Dit topic is gesloten.