title: Parse error: syntax error, unexpected T_ELSE
body: <p>i just need help regarding my code becuase i odnt have any idea where is the syntax error.</p>
  
  <pre><code>$file = $_FILES['image']['tmp_name'];
  
  if (!isset($file)) 
     echo "Please select an image";
  else
  {
     $image = addslashes(file_get_contents($_FILES['image']['tmp_name']));
     $img_name = addslashes($_FILES['image']['name']);
     $img_size = getimagesize($_FILES['image']['tmp_name']);
     if ($img_size == FALSE) 
        echo "select valid image.";
     else
     {
        if (!$insert = mysql_query("insert into testblob values('','$image','$img_name')"));
           echo "Problem uploading!";
        else
        {
           $lastid = mysql_insert_id();
           echo "Image uploaded.&lt;p /&gt;Your image:&lt;p /&gt;&lt;img src=get.php?id=$lastid&gt;";
        }
     }
  }
  </code></pre>
  
  <p>i just need to know where is the error. thnaks for the help. more power ..</p>