title: ( ! ) Parse error: syntax error, unexpected 'for' (T_FOR) in C:\wamp\www\corporation\new_subject.php on line 29
body: <p>I am getting error with the for loop and error name i have put it at the title of question please help me ...</p>
  
  <pre><code>&lt;p&gt;POSITION 
      &lt;select name="postion"&gt;
          &lt;?php
              $all_subj =  get_all_subjects();
              $subj_count     = mysql_num_rows($all_subj);
  
              for($count=1; $count &lt; = $subj_count+1; $count++){
                  echo " &lt;option value='$count'&gt;{$count}&lt;/option&gt;" ;  
              }
          ?&gt;
      &lt;/select&gt;
  &lt;/p&gt;
  </code></pre>