Okay er igang med en donation side. Problemet er dog at det admin panel jeg har gir parse error:
Parse error: parse error in C:\wamp\www\admin\admin.php on line 70
Det er lige meget om jeg så deleter line 70 så gir den bare error line 69 >.<
admin.php:
<?php session_start(); ?>
<?php
if (!isset($_SESSION['administrator'])
|| $_SESSION['administrator'] !== "1") {
echo "What the fuck are you doing here! This is for admins only!! - <a href=../index.php><b>FUCK OFF</b></a>";
exit;
}
?>
<link href="style.css" rel="stylesheet" type="text/css" />
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td colspan="2"><?php include ("blocks/toptjek.php"); ?></td>
</tr>
<tr valign="bottom" background="images/logo.png">
<td height="169" colspan="2"><?php include ("page/admin.php"); ?></td>
</tr>
<tr background="images/content.png">
<td height="30" colspan="2" class="undermenu">
<?php include ("page/admin2.php"); ?></td></tr>
<tr>
<td height="1" colspan="2"></td>
</tr>
<tr valign="top">
<td colspan="2">
<?php
echo "
<table bgcolor=gray width=100% align=center><tr><td>
<table style='width: 100%' align='center' class='style1'>
<tr>
<td><b>Id:</b></td>
<td><b>Reward:</b></td>
<td><b>Username:</b></td>
<td><b>Mail:</b></td>
<td><b>More:</b></td>
<td><b>Day:</b></td>
<td><b>Month:</b></td>
<td><b>Ip:</b></td>
</tr><br>
";
include("config2.php");
$sql = "SELECT * FROM website_donate ORDER BY id desc";
$result = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($result) == 0){
die('No donations found');
}
while($row = mysql_fetch_array($result)) {
$id = $row['id'];
$mail = $row['email'];
$more = $row['more'];
$ip = $row['ip'];
$username = $row['username'];
$month = $row['month'];
$day = $row['day'];
$reward = $row['reward'];
?>
</td>
</tr>
</table>
</table>
</table>
Håber der er nogen herinde der kan hjælpe.