I think I found out where the problem was. the datatype for check_in and check_out in the database was set to DATETIME
Instead of DATE
yet the code $check_in_db=date("Y-m-d",strtotime($check_in));
was converting it to date. I don’t know why it prevented entry of the other data, but after changing that, it is working now.
to use date time, use this $check_in_db=date("Y-m-d H:i:s",strtotime($check_in));
Related Posts:
- shortcode doesn’t work
- How to trigger $_GET request within admin plugin page?
- Custom form action to handle data inside a plugin
- Using a custom plugin to capture input data via Ajax and PHP
- Way to send multiple values for column to MySQL?
- Undefined variable _POST
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- Escape when echoed
- Scope for PHP Variables Assigned in functions.php or a plugin
- Plugin exceeds memory limit
- Write to / remove from default .htaccess file from plugin?
- Update Option Error: Notice: Undefined index
- Plugin Development sqlite or WordPress’ database
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- How to generate video out of images via WordPress plugin
- How can I get WordPress to save comments in markdown format?
- WooCommerce get_price returning wrong price when used via ajax
- How to ‘clone’ a wp plugin to make small changes
- Open Post Thumbnail in New Child Theme File in WordPress
- Where should I save an API key of my user when installing my plugin?
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- Programatically download a plugin
- Redirecting to home page after login as custom role WordPress
- Add keywords meta to index.php page
- Self deactivate plugins after an action occurs
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- WP Post Template – Templates in own folder
- wp_create_nonce function doesn’t work inside a plugin?
- Avoid class name collision when using third party libraries in plugins?
- New User Form – Custom Menu Page
- wordpress plugin is not activating from widget
- Edit Yoast SEO breadcrumbs output [closed]
- How would I go about creating a user ranked post popularity page?
- Redirection of users away from wp-admin (but not administrators)
- code is working properly in Core PHP but writing coding in WordPress
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Image upload and download from front-end
- WordPress WPforms customization
- wp_remote_get() returns 403 while file_get_contents() does not
- How to output CMB2 select options from repeated groups select elements?
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Plugin: register_deactivation_hook works perfectly well, while register_activation_hook suddenly stopped working
- Adapt PHP form action for WordPress?
- What are the specifics of WordPress development I need to know? [closed]
- Ajax call returning 0
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- WP All Import – Execute Imports
- Take input from form and pass it to function using a wp-plugin
- Checkbox conflict in my custom plugin admin page
- How to replace WordPress Media Upload Window with user’s device window?
- Conditional attributes and logic per product category
- How to insert HTML/JavaScript form into WordPress page? [closed]
- How to create a custom post type that contains another custom post type?
- WP Plugins – Use includes to display page content
- Perform internal redirect in WordPress?
- How to prevent plugins from loading jQuery
- WordPress get_avatar function not correct working
- Redirect to another page using contact form 7? [closed]
- Setup wp_schedule_event within a custom plugin
- Create a plugin from within WordPress
- Class variables not correct on page
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- Activate my plugins via FTP
- Duplicate results are displayed in a custom plugin [closed]
- Check if variable is set in filter
- Why is my custom post type not being activated on plug-in activation?
- How to add apply_filter for a class property in plugin
- Issue running db create table query from static method
- execute function after one completed
- Submit Form data to another page via Ajax (WordPress Way)
- How to make multiple admin pages for one plugin?
- Include a php file from another plugin
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to redirect to same page after form submission
- A server-side hook failed when committing plugin code to SVN
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- How do I add $_SESSION[”] to my wordpress page?
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Plugin onclick button activate other plugin
- I receive taxonomy id
- output html on post or page from custom plugin [closed]
- Loop in elementor custom widget not working
- How to create plugin/ page that reads from database
- Save user total active time after login in wordpress [closed]
- Built a second plugin but it overwrote the first one
- Creating a functionality plugin to edit seriously simple podcasting
- How WordPress core manage the plugin installation
- Switch from wp-cron to a server cron job
- Asynchronous request in wordpress
- How to delete all categories programatically?
- How to use custom Javascript code inside a plugin?
- Make plugin php file called directly aware of WordPress?
- Why is it important to check for isset and is_array before checking in_array in this example?
- How to add/change (woocommerce) product tab icon
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile