syntax error, unexpected T_VARIABLE in 
<p>Why I get this error:
Parse error:  syntax error, unexpected T_VARIABLE in /home/localhost/cgi-bin/do_transfers.php on line 52?
My script is looking like this:</p>

<pre><code>&lt;?php
include_once('config.php');

$now = time();
global $is_connected;
$query = "SELECT playerid, fromid, toid, sum, bid, deadline, agent_percent FROM ".TBL_TRANSFERS." WHERE finished='0' AND '$now'&gt;=deadline";
$query = mysql_query($query, $is_connected) or die('Can\'t connect to database.');
while ($tl = mysql_fetch_array($query)) {
    if ($tl['toid'] != 0) {
        $query2 = "SELECT teamid, at_club, born_club, last_club, age, weight, height, stamina, strength, breakthroughs, tackling, handling, speed, kicking FROM ".TBL_PLAYERS." WHERE id='$tl[playerid]'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');
        $pl = mysql_fetch_array($query2);
        $ss = (int)$pl['stamina'] + (int)$pl['strength'] + (int)$pl['breakthroughs'] + (int)$pl['tackling'] + (int)$pl['handling'] + (int)$pl['speed'] + (int)$pl['kicking'];
        $query2 = "UPDATE ".TBL_TRANSFERS." SET qi='$ss', finished='1' WHERE playerid='$tl[playerid]'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');    
        $query2 = "INSERT INTO ".TBL_TRANSFERS_COMPARE." (playerid, fromid, toid, sum, deadline, qi, age, weight, height, stamina, strength, breakthroughs, tackling, handling, speed, kicking) VALUES ('$tl[playerid]', '$tl[fromid]', '$tl[toid]', '$tl[sum]', '$tl[deadline]', '$tl[qi]', '$pl[age]', '$pl[weight]', '$pl[height]', '$pl[stamina]', '$pl[strength]', '$pl[breakthroughs]', '$pl[tackling]', '$pl[handling]', '$pl[speed]', '$pl[kicking]')";
        mysql_query($query2, $is_connected) or die('Can\'t connect to database.');
        $percent = $percent - $tl['agent_percent'];
        if ($pl['born_club'] == 0) {
            $query2 = "UPDATE ".TBL_PLAYERS." SET born_club='$pl[teamid]' WHERE id='$tl[playerid]'";
            $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');            
        }
        else {
            $percent = $percent - 2;
            $born = (int)($tl['sum'] * 2/100);
            $query2 = "UPDATE ".TBL_TEAMS." SET money=money+'$born' WHERE id='$pl[born_club]'";
            $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');            
            $query2 = "UPDATE ".TBL_FINANCES." SET in_transfers=in_transfers+'$born' WHERE teamid='$pl[born_club]'";
            $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');        
        }   
        if ($pl['last_club'] == 0) {
            $query2 = "UPDATE ".TBL_PLAYERS." SET last_club='$pl[teamid]' WHERE id='$tl[playerid]'";
            $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');            
        }
        else {
            $percent = $percent - 3;
            $last = (int)($tl['sum'] * 3/100);
            $query2 = "UPDATE ".TBL_TEAMS." SET money=money+'$last' WHERE id='$pl[last_club]'";
            $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');            
            $query2 = "UPDATE ".TBL_FINANCES." SET in_transfers=in_transfers+'$last' WHERE teamid='$pl[last_club]'";
            $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');            
        }
        $win = (int)($tl['bid'] - ($percent/100 * $tl['bid']));
        $query2 = "UPDATE ".TBL_TEAMS." SET money=money+'$win' WHERE id='$tl[fromid]'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');            
        $query2 = "UPDATE ".TBL_FINANCES." SET in_transfers=in_transfers+'$win' WHERE teamid='$tl[fromid]'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');        
        $query2 = "UPDATE ".TBL_TEAMS." SET money=money-'$tl[bid]' WHERE id='$tl[toid]'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');            
        $query2 = "UPDATE ".TBL_FINANCES." SET in_transfers=in_transfers-'$tl[bid]' WHERE teamid='$tl[toid]'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.') 
        $query2 = "UPDATE ".TBL_PLAYERS." SET teamid='$tl[toid]' WHERE id='$tl[playerid]'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');
    }
    else {
        $query2 = "DELETE FROM ".TBL_TRANSFERS." WHERE playerid='$tl[playerid]' AND finished='0'";
        $query2 = mysql_query($query2, $is_connected) or die('Can\'t connect to database.');    
    }
}           

sql_close($is_connected);
?&gt;
</code></pre>

<p>And the config.php file:</p>

<pre><code>&lt;?php
define('DEBUG', TRUE);
define('ANTIHACK', TRUE);
$dbInfo = array(
    'server' =&gt; 'localhost',
    'username' =&gt; 'root',
    'password' =&gt; '',
    'db_name' =&gt; 'my_database',
);  

define('TBL_FINANCES', 'finances');
define('TBL_PLAYERS', 'players');
define('TBL_TEAMS', 'teams'); 
define('TBL_TRANSFERS', 'transfers');
define('TBL_TRANSFERS_COMPARE', 'transfers_compare');

$is_connected = FALSE;
include_once('include/sql.php');
$is_connected = sql_connect($dbInfo);
if (!$is_connected)
    die('Can\'t connect to database.');
if (!sql_select_db($dbInfo['db_name'], $is_connected))
    die('Can\'t select database.');      
?&gt;
</code></pre>
