Bedankt voor jullie hulp.
Ik heb het meeste ook weer opgelost en heb een heel groot aantal regels verwijderd omdat ik in de knoop kwam met ifjes, elsejes, elseifjes, en {} tags. Nu ben ik aanbeland bij de laatste regel. Regel 269.
Maar ik krijg een Parse error.... op regel 270
Ik denk
De error:
Parse error: syntax error, unexpected $end in C:\xampp\xampp\htdocs\xampp\station-net\index.php on line 270
Dit is de code van het hele document (let niet op de orde, tis toch een rotzooi)
Code: Selecteer alles
<?
define('IN_PHPBB', true);
$phpbb_root_path = './'; // <--
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
?>
<link rel="stylesheet" href="playstationonline.css">
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="black" text="white" link="white" vlink="white" alink="white" background="images/cellpic_nav.gif">
<table align="center" cellpadding="0" cellspacing="0" width="90%" bgcolor="black">
<tr>
<td width="902" height="126" background="images/header3.jpg" class="header" colspan="5" align="right" valign="top">
<form name="form1" action="index.php?p=zoeken&db=games&q=<?$_POST['game']?>" method="post">
<p> Zoeken (games): <input type="text" name="game" style="color:white; background-color:rgb(0,0,102); border-width:1; border-color:white; border-style:solid;">
<input type="submit" name="search" value="Snel Zoeken" style="color:white; background-color:rgb(0,0,102);"></p>
</form>
</td>
</tr>
<tr>
<td width="12" height="558" background="cellpic2.jpg" class="cellpic_navigation" rowspan="3">
<p> </p>
</td>
<td width="189" height="156" class="cellpic_navigation" bgcolor="#000066" valign="top">
<form action=index.php?p=inloggen method=post target="_self"><? if ( !$userdata['session_logged_in'] )
{ ?>
Gebruikersnaam: <input class=post size="23" name=username style="color:white; background-color:rgb(0,0,102); border-width:1; border-color:white; border-style:solid;"> <br>Wachtwoord: <input class=post type=password size="23" name=password style="color:white; background-color:rgb(0,0,102); border-width:1; border-color:white; border-style:solid;"> <br><br>
Onthoud
mij <INPUT class=text type=checkbox name=autologin> <INPUT class=mainoption type=submit value="Inloggen" name=login style="color:white; background-color:rgb(0,0,102); border-width:1; border-color:white; border-style:solid;">
<a href="index.php?p=profiel&mode=register" target="_self"><b>Registreren</b></a><b><? }
else
{ ?>
<br> </b><a href="index.php?p=inloggen&logout=true" target="_self"><b>Uitloggen</b></a></form>
</td>
<td width="11" height="558" background="cellpic2.jpg" class="cellpic_navigation" rowspan="3">
<p> </p>
</td>
<td width="678" height="558" class="cellpic_navigation" rowspan="3" valign="top">
<p> <?
if ($_GET['p'] == "previews") { // Preview Overzicht
?>
<table width="100%" cellpadding="0" cellspacing="0" width="667" bgcolor="#000066">
<tr>
<td width="100%" height="26">
<p align="center"><a href="&letter=a">A</a> - <a href="&letter=b">B</a>
- <a href="&letter=c">C</a> - <a href="&letter=d">D</a> - <a href="&letter=e">E</a>
- <a href="&letter=f">F</a> - <a href="&letter=g">G</a> - <a href="&letter=h">H</a>
- <a href="&letter=i">I</a> - <a href="&letter=j">J</a> - <a href="&letter=k">K</a>
- <a href="&letter=l">L</a> - <a href="&letter=m">M</a> - <a href="&letter=n">N</a>
- <a href="&letter=o">O</a> - <a href="&letter=p">P</a> - <a href="&letter=q">Q</a>
- <a href="&letter=r">R</a> - <a href="&letter=s">S</a> - <a href="&letter=t">T</a>
- <a href="&letter=u">U</a> - <a href="&letter=v">V</a> - <a href="&letter=w">W</a>
- <a href="&letter=x">X</a> - <a href="&letter=y">Y</a> - <a href="&letter=z">Z</a></p>
</td>
</tr>
</table>
<table align="top" width="90%" bgcolor="#000066">
<tr>
<td width="20%" height="22" align="center" bgcolor="#000066" background="images/cellpic1.jpg">P</td>
<td width="70%" height="22" align="left" bgcolor="#000066" background="images/cellpic1.jpg">Game</td>
</tr>
</table>
<?
}
if ($_GET['p'] == "reviews") { // Review Overzicht
?>
<table width="100%" cellpadding="0" cellspacing="0" width="667" bgcolor="#000066">
<tr>
<td width="100%" height="26">
<p align="center"><a href="&letter=a">A</a> - <a href="&letter=b">B</a>
- <a href="&letter=c">C</a> - <a href="&letter=d">D</a> - <a href="&letter=e">E</a>
- <a href="&letter=f">F</a> - <a href="&letter=g">G</a> - <a href="&letter=h">H</a>
- <a href="&letter=i">I</a> - <a href="&letter=j">J</a> - <a href="&letter=k">K</a>
- <a href="&letter=l">L</a> - <a href="&letter=m">M</a> - <a href="&letter=n">N</a>
- <a href="&letter=o">O</a> - <a href="&letter=p">P</a> - <a href="&letter=q">Q</a>
- <a href="&letter=r">R</a> - <a href="&letter=s">S</a> - <a href="&letter=t">T</a>
- <a href="&letter=u">U</a> - <a href="&letter=v">V</a> - <a href="&letter=w">W</a>
- <a href="&letter=x">X</a> - <a href="&letter=y">Y</a> - <a href="&letter=z">Z</a></p>
</td>
</tr>
</table>
<table align="top" width="90%" bgcolor="#000066">
<tr>
<td width="20%" height="22" align="center" bgcolor="#000066" background="images/cellpic1.jpg">P</td>
<td width="70%" height="22" align="left" bgcolor="#000066" background="images/cellpic1.jpg">Game</td>
<td width="10%" height="22" align="center" bgcolor="#000066" background="images/cellpic1.jpg">Score</td>
</tr>
</table>
<?
}
elseif ($_GET['p'] == "artikelen") { // Artikel Overzicht
?>
HTML
<?
}
elseif ($_GET['p'] == "nieuws") { // Nieuws Overzicht en Nieuwsarchief
?>
HTML
<?
}
elseif ($_GET['p'] == "nieuws" AND $_GET['aktie'] == "lezen") { // Nieuwsbericht lezen
$query = "SELECT * FROM nieuws WHERE id=id";
while($result = mysql_fetch_object($query)){
$nieuwsid = $result->id;
$titel = $result->titel;
$topic = $result->topic;
$datum = $result->datum;
$autuer = $result->auteur;
$body = $result->bericht;
$bron = $result->bron;
$bronurl = $result->bronurl;
echo "<table>
<tr>
<td width=\"70%\" height=\"22\"background=\"images/cellpic1.jpg\" style=\"border-right-width:1; border-right-color:white; border-right-style:solid;\">Nieuwsbericht</td>
<td width=\"25%\" height=\"22\"background=\"images/cellpic1.jpg\">Info</td>
</tr>
<tr>
<td width=\"70%\" bgcolor=\"#000066\" style=\"border-right-width:1; border-right-color:white; border-right-style:solid;\">$body</td>
<td width=\"30%\" bgcolor=\"#000066\">
<img src=\"images/topics/$topic\" width=\"95%\" height=\"50\"><br>
<b>Gepost door:</b><br>
$auteur<br>
<b>Gepost op:</b><br>
$datum<br>
<b>Bron:</b><br>
<a href=\"$bronurl\">$bron</a><br>
</td>
</tr>
</table>";
$select = "SELECT * FROM reacties WHERE nieuws_id=$nieuwsid";
$reaktie_query = mysql_query($select);
$aantal[reacties] = mysql_num_rows($query);
$poster = $select->poster;
$reaktie = $select->bericht;
echo "<table width=\"95%\">
<tr>
<td bgcolor=\"#000066\" background=\"images/cellpic1.jpg\" height=\"22\">Gepost door <b>$poster</b></td>
</tr>
<tr>
<td bgcolor=\"#000066\" height=\"100\">$reaktie</td>
</tr>
</table><br>";
}
}
else {
?>
<table align="center" cellpadding="0" cellspacing="0" width="670">
<tr>
<td width="395" height="532" valign="top">
<table align="center" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td height="22" background="images/cellpic1.jpg">
<p align="center">Nieuws</p>
</td>
</tr>
<?
$sql = mysql_query("SELECT * FROM nieuws ORDER BY id DESC LIMIT 30");
while($result = mysql_fetch_object($sql))
{
$nieuwsid2 = $result->id;
$titel = $result->titel;
$topic = $result->topic;
$datum = $result->datum;
echo "<tr>
<td height=\"37\" valign=\"top\" bgcolor=\"#000066\">
<p>$datum <b><a href=\"index.php?p=leesnieuws&id=$nieuwsid2\">$titel</a></b><br>
$beschrijving</p>
</td>
</tr>
<tr>";
}
?>
</table>
</td>
<td width="275" height="532" valign="top">
<table align="center" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td height="22" background="images/cellpic1.jpg">
<p align="center">Nieuwste Artikelen</p>
</td>
</tr>
<tr>
<td height="180" valign="top" bgcolor="#000066">
<p> </p>
</td>
</tr>
<tr>
<td>
<p> </p>
</td>
</tr>
<tr>
<td height="22" background="file:///C|/Documents%20and%20Settings/Hazekamp/Bureaublad/playstationonline/images/cellpic1.jpg">
<p align="center">Nieuwste Reviews</p>
</td>
</tr>
<tr>
<td height="180" valign="top" bgcolor="#000066">
<p> </p>
</td>
</tr>
<tr>
<td>
<p> </p>
</td>
</tr>
<tr>
<td height="22" background="file:///C|/Documents%20and%20Settings/Hazekamp/Bureaublad/playstationonline/images/cellpic1.jpg">
<p align="center">Nieuwste Previews</p>
</td>
</tr>
<tr>
<td height="180" valign="top" bgcolor="#000066">
<p> </p>
</td>
</tr>
<tr>
<td>
<p> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p align="center"> </p>
<?
}
?>
</p>
</td>
<td width="12" height="558" background="cellpic2.jpg" class="cellpic_navigation" rowspan="3" valign="top">
<p> </p>
</td>
</tr>
<tr>
<td width="189" height="22" background="images/cellpic1.jpg" class="cellpic_navigation">
<p align="center">.:: Navigatie ::.</p>
</td>
</tr>
<tr valign="top">
<td width="189" height="305" class="cellpic_navigation" bgcolor="#000066">
<p><b> > Station-net<br> </b><a href="index.php"><b>Home</b></a><b><br>
</b><a href="index.php?p=nieuws"><b>Nieuws</b></a><b><br> </b><a href="index.php?p=archief"><b>Nieuws
Archief<br></b></a><b> </b><a href="index.php?p=artikelen"><b>Artikelen</b></a><b><br>
</b><a href="index.php?p=reviews"><b>Reviews</b></a><b><br> </b><a href="index.php?p=previews"><b>Previews</b></a><b><br>
</b><a href="index.php?p=downloads"><b>Downloads</b></a><b><br>
</b><a href="index.php?p=crew"><b>Crew</b></a><b><br> </b><a href="index.php?p=contact"><b>Contact</b></a><b><br> >
Playstation Gaming<br> </b><a href="index.php?p=games"><b>Games</b></a><b><br>
<a href="index.php?p=releasedata">Release Data<br></a> <a href="index.php?p=mostwanted">Most
Wanted<br></a> <a href="index.php?p=mostplayed">Most Played<br></a>
<a href="index.php?p=zoeken&db=games">Zoeken</a><br> </b><a href="index.php?p=playstation"><b>Playstation</b></a><b><br>
<a href="index.php?p=networkgaming">Network Gaming</a><br> </b><a href="index.php?p=faq&subject=playstation"><b>FAQ</b></a><b><a href="index.php?p=faq&subject=playstation">/Woordenboek</a><br> </b><a href="index.php?p=sony"><b>Sony</b></a><b><br>
</b><a href="index.php?p=links"><b>Links</b></a><b><br> > Community<br>
</b><a href="index.php?p=forum"><b>Forum</b></a><b><br> </b><a href="index.php?p=chat"><b>Chat</b></a><b><br>
</b><a href="index.php?p=nieuwsbrief"><b>Nieuwsbrief</b></a><b><br> </b><a href="index.php?p=berichten"><b>Privé
Berichten<br></b></a> </p>
</td>
</tr>
</table>
Ik let nu ff niet op beveiligingscodes omdat ik dit op een thuisserver heb staan. Alvast heel erg bedankt.
p.s. Misschien een handig ideetje om een parse error topic te maken, voor parse errors, aangezien dat de meestvoorkomende en irritantste problemen zijn.