PHP Parse Error on line 15
<p>I am getting the following error while connecting and fetching data from database</p>

<blockquote>
  <p>PHP Parse error: syntax error, unexpected '{' in data.php on line 15 </p>
</blockquote>

<p>Piece of code.</p>

<pre><code>&lt;?php
$con = mysql_connect("localhost","root","abc123");
if (!$con)
{
    die('Could not connect: ' . mysql_error());
}
mysql_select_db("mydb", $con);
$result = mysql_query("SELECT * FROM Persons");
echo "&lt;table border='1'&gt;";
$int = 0;
while($row = mysql_fetch_array($result))
{
    $int++;
    if ($int%2==0)
    {                    //------This is my line 15 in my code editor------
        echo "&lt;tr&gt;";
    }
    echo "&lt;td&gt;" . $row['FirstName'] . "&lt;/td&gt;";  
    if ($int%2==0) 
    {
        echo "&lt;/tr&gt;";
    }
}
echo "&lt;/table&gt;";
mysql_close($con);
?&gt;
</code></pre>

<p>Thanking in advance...</p>
