title: For loop inside Foreach
body: <p>I got a foreach which loops through my database for each user.</p>
  
  <pre><code>    &lt;?php
          foreach($users as $user) {
      ?&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;?php
                  for ($i=1; $i &lt; 52; $i++) {
                      echo $i;
                  }
                  ?&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;?php echo $user['firstname']; ?&gt;
              &lt;/td&gt;
           &lt;/tr&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>
  
  <p>This loop through database and echos the username, now I tried to build a for loop inside this so that every user has a number, I took as an example a very basic for loop ( it will be changed later).
  The problem is that I get all numbers printed out for each user, but I just want to print out the number once for a user. How do I solve this.</p>