Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

If THIS but NOT that, then GO!

Featured Replies

Hi Everyone!

I'm doing some conversions for a client and I'm trying to find date conflicts in scheduling.

Now, I've successfully broke down the day's and times to UNIX time.

SETUP:

1) I gather the requestors information $startDate and $endDate.

2) I gather the information from the database for that user.

PROBLEM:

I'm having trouble trying to get a handle to conflicts in date and start times.

Logically I would step through each record and say:

"if the requested start date is BEFORE the database END DATE but NOT AFTER the database START DATE, then all is well..." else return an error.

I think I'm headed in the right direction but I'm lost as to HOW to put this together in PHP Syntax.

Can anyone help!?

Thanks a bunch!

Could be:

if ($startDate < $endDate && $startDate < $DBstartDate) { ....

Good Luck.

Garry

  • Author

That's it!

I also had some rearanging of code to do but that was correct.

I guess after you work for 10 hrs. straight, your brain starts to cook!

:crazy:

Thanks!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.