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
- Customizing subject in comment notification e-mails
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- How to pass JavaScript variable to PHP in wordpress widget?
- Unable to add admin notice on plugin activation
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Plugin development: how to create a form and get custom data?
- Add CSS animation as Preloader to WordPress
- Errors while using ajax from external wordpress page
- Deleting images through upload folder, but not deleting from media library
- WordPress plugin installation
- Create or Update thousands of woocommerce products via PHP
- send_headers don’t work on wordpress multisite
- Plugin exceeds memory limit
- Update Option Error: Notice: Undefined index
- How to generate video out of images via WordPress plugin
- How to ‘clone’ a wp plugin to make small changes
- Where should I save an API key of my user when installing my plugin?
- Self deactivate plugins after an action occurs
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- WP Post Template – Templates in own folder
- Avoid class name collision when using third party libraries in plugins?
- Edit Yoast SEO breadcrumbs output [closed]
- 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?
- 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
- Conditional attributes and logic per product category
- How to insert HTML/JavaScript form into WordPress page? [closed]
- WordPress get_avatar function not correct working
- Check if variable is set in filter
- Submit Form data to another page via Ajax (WordPress Way)
- Include a php file from another plugin
- 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
- How to create plugin/ page that reads from database
- Save user total active time after login in wordpress [closed]
- How WordPress core manage the plugin installation
- Switch from wp-cron to a server cron job
- Calling a save function from a “submit” button
- Wp Debug Enabled True Notices and Warning
- Echo out element to another page.
- Select Form Element Not Saving from Plugin Options
- can’t unzip file
- User loggedin as Subscriber form not sending
- Monitor all the queriers executed by my website
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Unexpected add action function in WP plugin
- How to create admin setting for this small plugin
- Allow a particular user to access a particular plugin?
- Prevent WordPress from sending set-cookie http header
- Cookie value changes back to previous value after changing
- Change plugin descriptions
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- Problem with checked box on wp car manager plugin
- Define global variable in theme file and call that variable in plugin file
- WordPress rewrite rule depend on meta values not ids
- update_post_meta is not working for me when I use e.preventDefault for update button
- How to use Datatable with Ajax when creating plugin on WordPress?
- Problem with wordpress has_action() function
- Offering a freemium plugin (a free version + paid version)
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- Showing how many times is plugin activated or deactivated
- Woocommerce list variations that are added already to cart in Single Product
- WordPress Admin sub-level menu issue
- get/show Last ID
- Plugin communication between sites that use it?
- Passing ajax variable to more than one wordpress plugin function
- Form tries to download a file on submit
- Populate select option with JSON file
- insert multiple entries in database using a loop issue
- Displaying friend’s posts only
- Theme editor removes backslashes
- Plugin Hook: Get posts
- Saving custom form fields
- How to get site homepage from plugin?
- Create plugin with form in post and submit it to specific form
- Capturing POST data
- How use Dynamic hyperlink on each wordpress post?
- Unable to show 4 products in a row
- How to prevent page load on form submission
- What can I do to customize a widget provided with this plugin? from where have I to start?
- how to show selected options drop down menu values in attributes field in after saving post.php
- wp_handle_upload – specified file failed upload test
- How to make a Template page to show the information of different things Shop and Product page?
- How to trigger plugin migration code when plugin updates?
- How to Save Category and Delete Category in same Function
- public custom posts not showing in my wordpress plugin
- Accessing Correct Database to Create REST API Endpoint