Menu icon Foundation

My Posts




My Comments

Richard Pereira commented on Richard Pereira's post about 4 years

Yes Rafi, this submit will go to another page.

Richard Pereira commented on Flo Heinle's post about 4 years

did you ever get an answer for this, or get it working? I need to do the same thing.

Richard Pereira commented on Richard Pereira's post about 4 years

Tried this. Hope it shows up formatted in this post. Looks ok, but could be nicer.

<div class="row">
  <div class="large-12 columns">
    <div class="row">
      <div class="large-4 large-centered columns">
        <div class="panel radius">
          <div class="row">
      <? if ($_GET['action'] == '' ) { ?>
              <h4>Select a User to Manage:</h4>
              <div class="large-2 large-offset-2 columns">
                <div class="row">
        <? 
                  $strSQL = "SELECT * FROM `users` ORDER BY `username` ASC";
                  $data = mysql_query($strSQL);
                  $db = &db_connection();
                  $result = $db->query($strSQL);
      $split = ceil($result->num_rows/2);
      $cnt = 0;

                  while($row = $result->fetch_assoc()){
        $cnt++;
                    echo "<a href=\"?action=user&userID=" . $row['id'] . "\">" . $row['username'] . "</a><br />";
        if($cnt >= $split){
          echo "</div></div>"; // End first inner row and large-2
          echo "<div class=\"large-2 large-offset-2 columns\"><div class=\"row\">";
          $cnt = 0;
        }
                  }
                  ?>
                </div> // End second row
              </div> // End second inner large-2
            <? } ?>
          </div> // End inner most row
        </div> // End panel radius
      </div> // End large-4
    </div> // End row
  </div> // End large-12
</div> // End row

Posts Followed



Following

    No Content

Followers

My Posts

My Comments

You commented on Richard Pereira's post about 4 years

Yes Rafi, this submit will go to another page.

You commented on Flo Heinle's post about 4 years

did you ever get an answer for this, or get it working? I need to do the same thing.

You commented on Richard Pereira's post about 4 years

Tried this. Hope it shows up formatted in this post. Looks ok, but could be nicer.

<div class="row">
  <div class="large-12 columns">
    <div class="row">
      <div class="large-4 large-centered columns">
        <div class="panel radius">
          <div class="row">
      <? if ($_GET['action'] == '' ) { ?>
              <h4>Select a User to Manage:</h4>
              <div class="large-2 large-offset-2 columns">
                <div class="row">
        <? 
                  $strSQL = "SELECT * FROM `users` ORDER BY `username` ASC";
                  $data = mysql_query($strSQL);
                  $db = &db_connection();
                  $result = $db->query($strSQL);
      $split = ceil($result->num_rows/2);
      $cnt = 0;

                  while($row = $result->fetch_assoc()){
        $cnt++;
                    echo "<a href=\"?action=user&userID=" . $row['id'] . "\">" . $row['username'] . "</a><br />";
        if($cnt >= $split){
          echo "</div></div>"; // End first inner row and large-2
          echo "<div class=\"large-2 large-offset-2 columns\"><div class=\"row\">";
          $cnt = 0;
        }
                  }
                  ?>
                </div> // End second row
              </div> // End second inner large-2
            <? } ?>
          </div> // End inner most row
        </div> // End panel radius
      </div> // End large-4
    </div> // End row
  </div> // End large-12
</div> // End row

Posts Followed

Following

  • No Content

Followers

  • No Content