Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7592085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:49:03+00:00 2026-05-30T20:49:03+00:00

Full code: <table id=table-1> <thead> <th>Group Member</th> <th>Member’s Balance</th> </thead> <tbody> <?php foreach ($members

  • 0

Full code:

<table id="table-1">
<thead>
  <th>Group Member</th>
  <th>Member's Balance</th>
</thead>
<tbody>
    <?php foreach ($members as $mem) : ?>
  <tr>
    <td><?php echo $mem['nick_name']; ?></td>
  </tr>
    <?php endforeach; ?>
</tbody>
  </table>
<form action="./?action=pay_member" method="post" id="pay_org_member_form" >
  <table id="table-1">
<thead>
    <th>Group member</th>
    <th>Amount</th>
    <th>Description</th>
</thead>
<tbody>
<tr>
    <td>
       <select name="member_ID">
        <?php foreach ($members as $member) : ?>
            <option value="<?php echo $member['member_ID']; ?>">
                <?php echo $member['nick_name']; ?>
            </option>
        <?php endforeach; ?>
       </select>
    </td>
    <td>$<input type="input" name="amount" /></td>
    <td><input type="input" name="description" /></td>
</tr>
</tbody>

The problem I’m having now is the original table stopped pulling the $member variable. Only the new one works. It seems like I can only use this once. Anyway to get around this?

$members is declared like so:

Ok, $members is declared like so:

$members = get_other_members_by_org($org_ID, $member_ID);

and

function get_other_members_by_org($org_ID, $member_ID) {
global $db;
$query = "SELECT members.member_ID, nick_name, email_address 
          FROM 
            (members INNER JOIN orgs_to_members ON orgs_to_members.member_ID = members.member_ID)
          WHERE org_ID = '$org_ID' AND members.member_ID != '$member_ID'";
$members = $db->query($query);
return $members;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:49:04+00:00Added an answer on May 30, 2026 at 8:49 pm

    The first foreach consumes the query. Requery, or put the results into an array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ho to make this simple xml with php using DOM? Full code will be
This is the full code: def checkRow(table, r, pos, word): # done for you!
EDIT: Posting full code (except XML as it a bunch of ridiculous table formatting!)
Here's some code (full program follows later in the question): template <typename T> T
you can view full source code here dpaste.com/hold/167199 Error: delete() takes exactly 2 arguments
I am trying to load the FULL source code of an HTML website into
Are there any packages that can take a directory full of source code (Objective-C
Does anyone has the code to a full working example of slartoolkit ( http://slartoolkit.codeplex.com/
I have the following code in a full .NET framework solution: public delegate int
My output windows is full of The thread 0xe48 has exited with code 0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.