title: Get an error when I try to upload image (php)
body: <p>I get this error everytime I try to use upload.php. (I want to make an uplaod for an image where the filename is the username)</p>
  
  <pre><code>Parse error: syntax error, unexpected 'width' (T_STRING), expecting ',' or ';' in 
  D:[...]\upload.php on line 24
  </code></pre>
  
  <p>upload.php:</p>
  
  <pre><code>&lt;?php
  
  include('auth.php'); 
  include 'dbconnection.php';
  
  $user= "1";
  
  $id=($_SESSION['logedin']);
  $abfrage = "SELECT * FROM login WHERE id = '$id'";
  $ergebnis = mysql_query($abfrage);
  while($row = mysql_fetch_object($ergebnis))
     {
         $user= (".$row-&gt;id.") ;
     }
  
   move_uploaded_file($_FILES['image']['tmp_name'], './images/'.$user.'jpg');
  ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;&lt;/head&gt;
    &lt;body&gt;
  
   &lt;?php
   echo "&lt;img style="width: 250px; height: 500px" src="'./images/'.$user.'jpg''?v='.rand(0,1000)"/&gt;" 
   ?&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is how I use upload.php:</p>
  
  <pre><code>&lt;form method="post" action="upload.php" enctype="multipart/form-data" target="leiframe"&gt;
        &lt;input type="file" name="image"/&gt;
        &lt;input type="submit" value="upload"/&gt;
  &lt;/form&gt;
  </code></pre>