Welcome!

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.

PHP Can someone help me figure this out?

Here's my code:
PHP:
<div class="scrollit">
        <table id="rank-table">
<thead>
<tr>
                <th>Select</th>
<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>
            </tr>
</thead>
<tbody>
<tr>
            <?php
                while($rows=$result->fetch_assoc())
                {
            ?>
            <tr>
                <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>
            </tr>
            <?php
                }
            ?>
            </tbody>
        </table>
            </div>

        </div>
This is what it actually looks like:
View attachment 2229
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.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom