Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button id="btnDeleteRow">Delete</button>
- <?php
- global $wpdb;
- $result = $wpdb->get_results("SELECT * FROM `table`", ARRAY_A);
- ?>
- <table border="1" id="tiwari-table" class="tiwari-table">
- <thead>
- <tr>
- <th>State</th>
- <th>City</th>
- <th>Tehsil</th>
- <th>Village</th>
- <th>Name</th>
- <th>Ward</th>
- <th>Address</th>
- <th>Description</th>
- <th>Mobile</th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach($result as $row){
- ?>
- <tr id="<?php echo $row[id];?>">
- <td id="state"><?php echo $row[state];?></td>
- <td id="city"><?php echo $row[city];?></td>
- <td id="tehsil"><?php echo $row[tehsil];?></td>
- <td id="village"><?php echo $row[village];?></td>
- <td id="name"><?php echo $row[name];?></td>
- <td id="ward"><?php echo $row[ward];?></td>
- <td id="address"><?php echo $row[address];?></td>
- <td id="description"><?php echo $row[description];?></td>
- <td id="mobile"><?php echo $row[mobile];?></td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement