Parse error: parse error, expecting `','' or `')'' in E:\server\htdocs\habmax\news_ad

Status
Niet open voor verdere reacties.

erik11

Gebruiker
Lid geworden
26 mei 2008
Berichten
25
Hallo!
als ik op mijn website de pagina news_admin.php start, dan krijg ik deze vervelende error.

Parse error: parse error, expecting `','' or `')'' in E:\server\htdocs\habmax\news_admin.php on line 5

Ik kan de fout niet vinden. Hier is het script:

news_admin.php
PHP:
<?php

include('mysql.php');

if(isset($_GET["item"] == 'add'))
{
?>
<html>
<head>
<title>Habmax ~ Nieuwsadmin</title>
</head>
<body>
<body background='img/bg.gif'>
<font size='5'>Nieuwsadmin</font>
<p>
<?php include('header.php'); ?>
<br>
<table border='0'>
<tr>
<td bacgkround='img/bg_box8.PNG' width='203' heigth='403' align='center'>
&nbsp;<p>&nbsp;<p>
<a href='news_admin.php?item=add'>Nieuwsbericht toevoegen</a>
<br>
<a href='news_admin.php?item=change'>Nieuwsbericht wijzigen</a>
<br>
<a href='news_admin.php?item=topstory'>Verander de topstory</a>
&nbsp;<p>
</td>
<td background='img/bg_box9.PNG' width='552' heigth='642' align='center'>
<font size='2'>
<b>Nieuwsbericht toevoegen</b>
<p>
Voeg hier een nieuw nieuwsbericht toe.
<form action='<?php $_SERVER["PHP_SELF"]; ?>' method='post'>
<br>
Titel van nieuwsbericht:
<br>
<input type='text' name='title' size='35'>
<p>
Schrijver:
<br>


<?php
}
?>

<html>
<head>
<title>Habmax ~ Nieuwsadmin</title>
</head>
<body>
<body background='img/bg.gif'>
<font size='5'>Nieuwsadmin</font>
<p>
<?php include('header.php'); ?>
<br>
<table border='0'>
<tr>
<td bacgkround='img/bg_box8.PNG' width='203' heigth='403' align='center'>
&nbsp;<p>&nbsp;<p>
<a href='news_admin.php?item=add'>Nieuwsbericht toevoegen</a>
<br>
<a href='news_admin.php?item=change'>Nieuwsbericht wijzigen</a>
<br>
<a href='news_admin.php?item=topstory'>Verander de topstory</a>
&nbsp;<p>
</td>
</tr>
</table>
</body>
</html>

Dank jullie wel.
Hier is ook nog voor de include pagina, mocht het helpen:

mysql.php
PHP:
<?php

/* --- Mysql verbinding

Pas deze aan voor andere verbinding!!

*/

mysql_connect("localhost","root","langendijk11") or die(mysql_error());
mysql_select_db("holodb") or die(mysql_error());

?>

header.php
PHP:
<table border='0'>
<tr>
<td background='img/button.PNG' width='112' heigth='28' align='center'>
<a href='me.php' style='text-decoration: none'><font color='#FFFFFF'><?php echo $row["name"]; ?></font></a>
</td>
<td background='img/button.PNG' width='112' heigth='28' align='center'>
<a href='credits.php' style='text-decoration: none'><font color='#FFFFFF'>Credits</font></a>
</td>
<td background='img/button.PNG' width='112' heigth='28' align='center'>
<a href='club.php' style='text-decoration: none'><font color='#FFFFFF'>HC club</font></a>
</td>
<td background='img/button.PNG' width='112' heigth='28' align='center'>
<a href='account_mission.php' style='text-decoration: none'><font color='#FFFFFF'>Account</font></a>
</td>
<td background='img/button.PNG' width='112' heigth='28' align='center'>
<a href='logout.php' style='text-decoration: none'><font color='#FFFFFF'>Uitloggen</font></a>
</td>
<?php

mysql_connect("localhost","root","langendijk11") or die(mysql_error());
mysql_select_db("holodb") or die(mysql_error());

$username2 = $_COOKIE["habmaxuser"];
$query3 = mysql_query("SELECT * FROM users WHERE name = '$username2'");
$row3 = mysql_fetch_array($query3);

if($row3["rank"] == 7)
{
?>
<td background='img/button.PNG' width='112' heigth='28' align='center'>
<a href='admin.php' style='text-decoration: none'><font color='#FFFFFF'>Admin</font></a>
</td>
<?php
}
?>
</table>
 
Dit kan niet:
PHP:
if(isset($_GET["item"] == 'add'))

Dat moet zo:
PHP:
if(isset($_GET["item"]) &&  $_GET["item"] == 'add')
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan