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 7608059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:49:22+00:00 2026-05-31T00:49:22+00:00

After dynamically creating a client-side table based on SELECT information retrieved from MySql database,

  • 0

After dynamically creating a client-side table based on SELECT information retrieved from MySql database, how can I select a row from the client-side table and return that row(s) information back into PHP so that I can process it into a MySql query to return other specific information?

What I’m trying to achieve: I’m creating a (relatively) simple administrative CMS (not using any .htaccess, purely server-side scripting). On the admin page I will have various tables populate based on the information I request; let’s use the Website User information for this example. After populating the client-side table with a checkbox for each row and other minor information (username, first/last name etc), I want to be able to check the checkbox next to a specific name, select an action (i.e. view users profile, ban, etc) from a dropdown box and ‘Submit’ the request.

Question: How do I now take that single (or possibly multiple) row that I checked and return it (identify it) to php so that I can run a MySql query on that specific row(s) only, after the action has been submitted? Usernames are unique in my sql table, so using that as the identifier for the return information/value for processing would be best. Keep in mind that the positioning of data within that table could change with each page load, depending on new users and other situations (in other words, row 1 of the client-side table may not always be ‘Jim Jones’ when the table is populated.) I’m not opposed to any solutions that may incorporate javascript/jquery if that is the best solution to this problem.

Thanks for your help everyone!

  • 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-31T00:49:23+00:00Added an answer on May 31, 2026 at 12:49 am

    You are mixing matters. And running too fast, trying to solve a thousand tasks with one solution.

    Pressing several buttons to view user’s profile makes no sense.
    It have to be a hyperlink.

    <a href=vireprofile.php?id=20>John Doe</a>
    

    where 20 is an auto incremented unique identifier (not name obviously)

    For the group actions you have to use arrays
    And POST method for data modifications
    so, here is an example HTML

    <input type="checkbox" name"box[]" value="20">
    <input type="checkbox" name"box[]" value="55">
    

    where 20 and 55 are ids again
    PHP

    if ($_POST['action'] == 'ban') {
      foreach ($_POST['box'] as $id) doBan($id);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using DTS I'm dynamically creating an access database. After the file is created (which
Here's the rundown: I am creating a table dynamically from the results of an
After dynamically creating an element with this: $('#btnAddBanner').click(function () { var uid = new
I'm developing a framework which programs parts of itself dynamically after creating ER-Diagrams in
I am creating dynamically a PDF file. After creating I want to open the
I am creating a large table dynamically using Javascript. I have realised the time
I am dynamically creating an HTML table by using a repeater. I have four
I am dynamically creating a Form that overrides the CreateParams so that I can
I am dynamically creating forms from a JSON object that I fetch with a
I'm dynamically creating a select node with option nodes inside. The code works fine

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.