error in php file upload
<p>I have been over and over this but I can not find why it is giving this error. Parse error: syntax error, unexpected $end in /home/valerie2/public_html/elinkswap/snorris/file.php on line 78. Maybe if there was more eyes on it maybe be able to find where I didnt do something right. Thanks for looking.</p>

<pre><code>&lt;?php

session_start();


include "connect.php";

if ($_POST["submit"])
{



    //Coding
    if($_SESSION["name"])

    {



    //variables

    $name = $_FILES["file"]["name"];
    $type = $_FILES["file"]["type"];
    $size = $_FILES["file"]["size"];
    $tmp_name = $_FILES["file"]["tmp_name"];
    $error = $_FILES["file"]["error"];

    if ($type =="image/jpeg" || $type =="image/gif")
    {

        if ($size &gt;1100000 &amp;&amp; $size &lt;1700000)
        {

            if($error &gt; 0)
            {

            echo "Error!!!!!!".$error;

    }
    else

    {

    if(file_exists("upload/".$name))

    {
    echo $name." already exists.";
    }

else
    {
    $location ="upload/".$name;
    move_uploaded_file($tmp_name,$location);
    $user = $_SESSION["name"];


    $sqlcode = mysql_query("INSERT INTO imageupload (id,user,location) VALUES ('','$user','$location')");


    echo "&lt;a href='$location'&gt;Click here to view your image.&lt;/a&gt;";
    }

  }


}
else
    {

    echo "Please check the size of your File..";
    }
}
else
{
    echo "Invalid file format.";
}
</code></pre>

<ol>
<li>?></li>
</ol>
