Parse error: syntax error, unexpected T_STRING op lijn 28
wie kan me helpen ?
PHP
<?php
/*------------includes--------------*/
include ('./includes/connections.php');
include ('./includes/brain_file.php');
include ('./includes/style_top.php');
/*------------includes--------------*/
if($pl['my_jail'] < gmtime() || $pl['my_hosp'] > gmtime())
{
echo "Sorry this page is not viewable while out of jail or hospital!<hr width='75%'/>";
include ('./includes/style_bottom.php');
exit();
}
else
{
print "<center><table width=80% class=h border=1><tr><th>Daily Reward</th></tr><tr>
<td>
<center><hr width='70%'>This Feature is to get a free reward,
You only have 1 Chance (Each Day) to get a Reward,
The Rewards will be Different Each Day of the Week!<hr width='70%'>
";
if($_GET['reward'])
{
if($ir['rewarddone'] >= 1)
{
die("<font color=red>Sorry, You Have already Had your Daily Reward, Come Back Tomorrow!</font>
</td></tr></th></table><table width=80% class=h border=1><tr><th><a href="http://dailyreward.php" target="_blank">- Go Back -</a></th></tr></td></th>
</table>");
}
$num=rand(1, 5);
$db->query("UPDATE members SET rewarddone=rewarddone+1 WHERE playerid=$playerid");
$ir['money']-=100;
switch($num)
{
case '1':
$money =rand(10000,100000);
print "<font color='blue'>You Gained Some Money</font>";
mysql_query("UPDATE `members` SET `wallet` = `wallet` +{$money} WHERE `playerid` = {$_SESSION['playerid']}");
break;
case '2':
$crystal =rand(2,10);
print "<font color='blue'>You Gained Some graft</font>";
mysql_query("UPDATE `members` SET `my_nerve` = `my_nerve` +{$crystal} WHERE `playerid` = {$_SESSION['playerid']}");
break;
case '3':
$brave =rand(5,15);
print "<font color='blue'>You Gained Some Energy</font>";
mysql_query("UPDATE `members` SET `my_energy` = `my_energy` +{$brave} WHERE `playerid` = {$_SESSION['playerid']}");
break;
case '4':
$money =rand(10000,100000);
print "<font color='blue'>You Gained Some Money</font>";
mysql_query("UPDATE `members` SET `wallet` = `wallet` +{$money} WHERE `playerid` = {$_SESSION['playerid']}");
break;
case '3':
$brave =rand(5,15);
print "<font color='blue'>You Gained Some Energy</font>";
mysql_query("UPDATE `members` SET `my_energy` = `my_energy` +{$brave} WHERE `playerid` = {$_SESSION['playerid']}");
break;
}
print "
<a href='city.php'><font color=black>- back -</font>
";
}
else
{
print "
</td></tr></th></table><table width=80% class=h border=1><tr><th><a href="http://dailyreward.php?reward=1" target="_blank"><font color=green>- Start -</font></a></th></tr></td></th>
</table>
<table width=80% class=h border=1><tr><th><a href="http://index.php" target="_blank">- Go To Home -</a></th></tr></td></th></table>
";
}
$h->endpage();
?>
Toon Meer