By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

How do I perform the following function in PHP?

Here's my code:
<div class="scrollit">
        <table id="rank-table">
<th scope="col"><a href="#" class="sort-by">Sort Order</a></th>
<th scope="col"><a href="#" class="sort-by">Rank Name</a></th>
<th scope="col"><a href="#" class="sort-by">Level</a></th>
<th scope="col"><a href="#" class="sort-by">Fee</a></th>
<th scope="col"><a href="#" class="sort-by">Minimum Classes at Rank</a></th>
<th scope="col"><a href="#" class="sort-by">Minimum Time at Rank</a></th>
                <td><input type="checkbox" style="vertical-align:middle" name='selectedRow[]' value='" . $row['id'] . "'></td>
                <td><?php echo $rows['sortorder'];?></td>
                <td><?php echo $rows['rankname'];?></td>
                <td><?php echo $rows['level'];?></td>
                <td><?php echo $rows['fee'];?></td>
                <td><?php echo $rows['min_classes_at_rank'];?></td>
                <td><?php echo $rows['min_time_at_rank'];?></td>

This is what it actually looks like:
The image describes what I would like to happen. I already have this built, I just can't figure out how to pass the data to the edit page and then fill the input fields with the data from the selected row and then update the data with the update button in the form. The layout is already the way I would like it, I just need the functionality. Is there any way to do this? When you click the "Edit Selected Rank Group", it will pass the data from the selected row.
what's your backend? SQL? you can use ADOdb, with your own custom database business logic - the idea is you write specific scripts that do input checking and then produce the right output in JSON. if you need to write back into the db from js, you then call that PHP db business logic using something like jQuery

good luck.

New Threads

Latest posts

Buy us a coffee!

Top Bottom