Parse error: syntax error, unexpected '[', expecting ']'
<p>I am executing a query but it keeps giving me </p>

<pre><code>Parse error: syntax error, unexpected '[', expecting ']' in /home/content/01/8998301/html/track_trace.php on line 62
</code></pre>

<p>and here is the php code. I dont know where I went wrong.</p>

<pre><code>&lt;?php
//Start session
session_start();

    //Connect To Database
$hostname='example.com';
$username='king';
$password='xxxxx';
$dbname='king';
$usertable='tracking';

//Connect to mysql server
$link = mysql_connect($hostname, $username, $password);
if(!$link) {
    die('Failed to connect to server: ' . mysql_error());
}

//Select database
$db = mysql_select_db($dbname);
if(!$db) {
    die("Unable to select database");
}

//Function to sanitize values received from the form. Prevents SQL injection
function clean($str) {
    $str = @trim($str);
    if(get_magic_quotes_gpc()) {
        $str = stripslashes($str);
    }
    return mysql_real_escape_string($str);
}

//Sanitize the POST values
$track = clean($_POST['track']);


//Input Validations
if($track == '') {
    $errmsg_arr[] = 'Please enter your B.L or Container Number';
    $errflag = true;
}
//If there are input validations, redirect back to the login form
if($errflag) {
    $_SESSION['ERRMSG_ARR'] = $errmsg_arr;
    session_write_close();
    header("location: index.html");
    exit();
}

//Create query
$qry="SELECT * FROM $usertable WHERE track='$track' ";
$result=mysql_query($qry);

//Check whether the query was successful or not
$data=array("3434223442"=&gt;array("url"=&gt;"contactus.php"), 

        "tuon77"=&gt;array("url"=&gt;"insideonbanking-7.php","password"=&gt;"autricia7")); 

   if(isset($_POST['track'])) { 
   if($data[$_POST['track']]) { 
    $_SESSION['track'] = $_POST['login'] . " ; 
    header('Location: ' . $data[$_POST['track']]['url']); 
    exit();         
    }else {
        //Login failed
        header("location: index.php");
        exit();
    }
}else {
    die("Query failed");
}
   ?&gt;
</code></pre>

<p>How can I fix the parse error?</p>
