title: unexpected '' (T_ENCAPSED_AND_WHITESPACE) while output
body: <p>I'm sorry if my question may appear silly, but I'm really confused with an error I'm getting while outputting a file name from array.</p>
  
  <p>First I'm populating array with a column names from my database. Here is the code:</p>
  
  <pre><code>    $AddNews = "SELECT * FROM picture_names";
  $result = mysql_query( $AddNews, $IVE_Connection ) or die('ERROR: '.mysql_error());
  for($i = 0; $i &lt; mysql_num_fields($result); $i++){
      $field_info = mysql_fetch_field($result, $i);
      $name_array[] = $field_info-&gt;name;
  }
  
      for($i = 0; $i &lt; sizeof($name_array); $i++){
      echo "&lt;input type='file' name='".$name_array[$i]."'    id='".$name_array[$i]."' value=''&gt;";
      echo "&lt;/span&gt;&lt;br /&gt;";
      echo "&lt;/div&gt;";
  }
  </code></pre>
  
  <p>There is no problem in that stage. But when I'm trying. I can Output in normally. The problem starts when i try to print condition with the same array:</p>
  
  <pre><code>for($i = 0; $i &lt; sizeof($name_array); $i++){
  echo "if($_FILES['".$name_array[$i]."']['tmp_name'] != ''){";// the problem ocures here
     ...some code here
  echo "}";
  }
  </code></pre>
  
  <p>here I always have a mistake <code>unexpected '' (T_ENCAPSED_AND_WHITESPACE)</code> Itried to stringify it but still having the same error. if I output just an array outside of <code>$_FILES</code> logic there is no problem.</p>
  
  <p>I would be grateful if someone can point me what am I doing wrong.</p>