ik heb een probleem met een script
het probleem die ik te zien krijg is
Parse error: syntax error, unexpected T_ELSE in /home/********/domains/domein.com/public_html/companyspecials.php on line 117
code kon niet volledig geplaatst worden omdat het te groot is
PHP
<?php
/*------------includes--------------*/
include ('./includes/connections.php');
include ('./includes/brain_file.php');
include ('./includes/style_top.php');
/*------------includes--------------*/
echo "<center><main>Company specials</main><hr width = '750px'>";
$q_ry = array();
$q_ry = "SELECT `my_comp`,`my_comp_points`
FROM `members_extra`
WHERE `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
$incomp = array();
$incomp = mysql_query($q_ry);
$ic = array();
$ic = mysql_fetch_array($incomp);
if(!$ic['my_comp'])
{
echo "<center>You are not part of a company!
<hr width='750px'/>
><a href='javascript:history.back()'>Okay</a>
<hr width='750px'/>";
include ('./includes/style_bottom.php');
exit();
}
else
{
$details = array();
$t = array();
$q_ry = array();
$q_ry = "SELECT *
FROM `members_companies` mc
LEFT JOIN `members` m ON
mc.c_owner = m.playerid
WHERE mc.c_id = '".mysql_real_escape_string($ic['my_comp'])."'";
$details = mysql_query($q_ry);
$ds = array();
$ds = mysql_fetch_array($details);
$type = array();
$q_ry = array();
$q_ry = "SELECT *
FROM `system_companies`
WHERE `c_ID` = '".mysql_real_escape_string($ds['c_TYPE'])."'";
$type = mysql_query($q_ry);
$t = mysql_fetch_array($type);
$my_rank = array();
$mr = array();
$q_ry = array();
$q_ry = "SELECT *
FROM `comp_members` cm
LEFT JOIN `system_c_ranks` sr
ON cm.m_rank = sr.cr_ID
WHERE cm.m_playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'";
$my_rank = mysql_query($q_ry);
$mr = mysql_fetch_array($my_rank);
if(!$_GET['step'])
{
echo "<table width=750px border=0><tr>
<td align = 'left'><br>
You have <b>".number_format($ic['my_comp_points'])."</b> company points.<br>
You gain (1 x company rating) company points every day.<br>
These points will be lost if you leave the company or you are kicked.<br><br>";
if($t['c_ID'] == '1')
{
if($ds['c_star'] >= '1')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=1>Protein boost</a> (10 Strength per 10 job points)<br/>";
}
if($ds['c_star'] >= '3')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=2>Meat cleaver</a> (Meat cleaver item per 25 job points)<br/>";
}
if($ds['c_star'] >= '5')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=3>Dual machete</a> (Dual machete item per 1000 job points)<br/>";
}
echo "<br></td>
</tr></table><hr width='750px'>><a href='javascript:history.back()'>Back</a><hr width='750px'></center>";
}
if($t['c_ID'] == '2')
{
if($ds['c_star'] >= '1')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=1>Can of energie</a> (Can of energie per 10 job points)<br/>";
}
if($ds['c_star'] >= '3')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=2>Meat cleaver</a> (Meat cleaver item per 25 job points)<br/>";
}
if($ds['c_star'] >= '5')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=3>Dual machete</a> (Dual machete item per 1000 job points)<br/>";
}
echo "<br></td>
</tr></table><hr width='750px'>><a href='javascript:history.back()'>Back</a><hr width='750px'></center>";
}
}
if($t['c_ID'] == '3')
{
if($ds['c_star'] >= '1')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=1>Pyromaniac</a> (5 Happy per 2 job points)<br/>";
}
if($ds['c_star'] >= '3')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=2>Illumination</a> (Increases Awareness per 25 job points)<br/>";
}
if($ds['c_star'] >= '5')
{
echo "•<a href=companyspecials.php?step=specialuse&XID=3>Gas Guzzler</a> (Trade 500 job points for a gas can)<br/>";
}
echo "<br></td>
</tr></table><hr width='750px'>><a href='javascript:history.back()'>Back</a><hr width='750px'></center>";
}
}
else
{
echo "<center>";
if(in_array($_GET['XID'], array(1)) && $t['c_ID'] == '1')
{
if($_GET['XID'] == '1' && $ds['c_star'] >= '1')
{
if(!$_GET['next'])
{
echo "Are you sure you wish to swap 10 points for 10 strength?
<hr width='750px'>
<table width = '750px'>
<tr>
<td align = 'center' width = '50%'>
><a href='companyspecials.php?step=specialuse&XID=".$_GET['XID']."&next=1'>Yes</a>
</td>
<td align = 'center' width = '50%'>
><a href='companyspecials.php'>No</a>
</td>
</tr>
</table>
<hr width='750px'>";
}
else
{
Toon Meer