Try making your foreach loop like this one and let me know the result. It should solve your it is only the ID of the last entry passed (the last ID inserted) issue
foreach ($dataSet as $tableSet) {
$tableLayout .= '<tr>' . '<td>' . $counter . '</td>' . '<td>' . $tableSet->name . '</td>' .
'<td><input type="hidden" name="dropEntry" value="' . $tableSet->id .'">' .
'<button type="submit">Delete</button>'
. '</input>' . '</tr>';
$counter = $counter + 1;
}
Related Posts:
- How do I change/modify the_post_thumbnail(); html output?
- Why do templates contain so many PHP tag pairs?
- How do I use Shortcodes inside of HTML tags?
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- Where should I install a PHP library into WordPress so that code in a webpage can activate it?
- WordPress Shortcode and Dynamic CSS
- Correct way to make static pages editable in wordpress
- How do I edit the php/html for a particular post?
- Multiple pages on one with different HTML
- Add custom HTML to posts page
- Minify HTML, CSS, JS with PHPWee?
- Header has extra HTML block at top before my code
- Placing raw HTML inside a WordPress shortcode
- How to only show page id as body class?
- Shortcode content output but not in correct place
- An unwanted inline style is added to my body tag
- How to properly insert a link to a template in WordPress?
- Show post in slider
- HTML tags in bloginfo description
- Add a class to the anchor tag on HTML5 gallery
- Transferring working local PHP site to wordpress – with database (MySQL)
- how to remove metadata from the posts of my blog?
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Using the echo command adds unwanted br tags to source
- Use DOMDocument with ob_start breaks my HTML code
- selected option if current category is the value
- Input data from email form not going to JSON file
- Different post styles depending on category
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Commenting out unwated CSS/scripts in HTML with PHP
- Show latest posts in a plain HTML website custom widget [closed]
- Hide HTML element (by class or ID) with PHP
- Path for php file for inserting data through html form
- Widget back end radio button issue
- How to remove coupon dropdown feature
- Add shortcode in my div
- Add html link in functions.php files of the theme
- PHP contact form not redirecting [closed]
- How to Schedule Cronjobs for start of every month and year
- Handling PHP/HTML inside the output of a shortcode function
- Illegal string offset error in wordpress theme options textarea
- Need help removing […] after excerpt
- Initial offset of number of posts in home page on the posts page
- WordPressUser Submission Form
- Shortcode displaying at the top of the page [duplicate]
- Is it possible to isolate and use WordPress functions outside of wordpress
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Background image no longer fits to screen now that project is in php files
- Search bar for wp menu
- Adding HTML Code to Replace Text in PHP
- Executing php on button press
- Shortcode in Shortcode/HTML Graphics and Pictures
- I can’t go to the page archive-{post_type}.php
- WP Website is shown in HTML
- Use Search Term in html link and redirect
- Mysterious letters appearing at the top of a few pages
- Current WordPress Page Title as Search Parameter into A Tag
- If user has clicked link add class and store using PHP/WordPress
- HTML Formatting “single_term_title()”?
- How to Protect a private folder inside uploads folder, if User is not Logged In?
- How to center all text body in single.php at once?
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Changable favicon
- How can I get my pagination loop to display the correct number of total pages?
- AMP version of e-commerce without plugin
- Creating Log-In Page for backend server
- user update profile for custom code
- Vertical Menu for one page only
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Splitting table data to pages with numbers
- Show post/page into div using function
- wordpress, Category ID
- wp nav menu without label
- Pass the updated value of aid from form using ajax
- Show contact 7 form in popup
- nested divs, classes for a grid in loop [duplicate]
- featured post as div background
- Arrange Category post manually when displayed
- how to manipulate HTML parameters using PHP conditions
- Display wordpress post to static website in the footer
- Php echo into tag
- How to edit homepage in WordPress?
- How to customize posts in WordPress by using HTML and CSS?
- WP_Query not returning results
- Header location [closed]
- How do I link the side images?
- How to create a container in php then customise it in CSS
- Custom HTML/CSS Theme into WordPress – SEO considerations
- Load wp_editor on button click
- How to enqueue structured data as file – jsonld file seems not to work
- Add topbar to static html page
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Slick slider not working on wordpress
- How to modify default tags in wp_head()
- #038 & wordpress Help
- How can I process a form submission from an HTTP POST request?
- Allow HTML in custom taxonomy description, and show it on front end