title: Insert nth row based on input entry
body: <p>The following code runs well:</p>
  
  <pre><code>&lt;?php
  if(isset($_POST['add_bscint'])) {
      $req_field = array('bsc_id','int_no');
      validate_fields($req_field);
      $bsc_id = remove_junk($db-&gt;escape($_POST['bsc_id']));
      $intno = remove_junk($db-&gt;escape($_POST['int_no']));
  
      if(empty($errors)) {
          $sql  = "INSERT INTO bsc_int (bsc_id,bscint_no)";
          $sql .= " VALUES ('{$bsc_id}','{$intno}')";
      } else {
          $session-&gt;msg("d", $errors);
          redirect('bsc_int.php',false);
      }
  }
  ?&gt;
  </code></pre>
  
  <p>Instead of adding a single row, I would like to add a row based on the value entry in <code>$_POST['int_no']</code>.</p>
  
  <p>So if the input entry is <code>5</code>, it will insert 5 rows, numbered <code>int.1</code>..<code>int.5</code>, as shown below:</p>
  
  <pre><code>bsc_id    intno
  name1     int.1
  name1     int.2
  name1     int.3
  name1     int.4
  name1     int.5
  </code></pre>
  
  <p>How do I do this?</p>