title: I need to echo all tokens when am done
body: <p>The issue is about echoing all tokens after completing the loop, I don't seem to be getting it.</p>
  
  <pre class="lang-php prettyprint-override"><code> for ($x = 1; $x &lt;= 5; $x++) {
      $token = openssl_random_pseudo_bytes(6);
      $token = bin2hex($token);
  
      $sql = "INSERT INTO voucher (generator,pin,date)
              VALUES('$username', '$token', '$datenow')";
  
      if (mysqli_query($conn, $sql)) {
  
          //echo tokens
  
      }
  }
  </code></pre>