Skip 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.

Die Command FX.php

Featured Replies

Hello,

I was wondering if there is a line of code that I can put in my solution that will either die or redirect to a can't connect to database screen if the database is not available.

I am contemplating having filemaker as the main database engine behing my websites, but If for some reason the connection can't be completed, users would be redirected to a mysql entry screen located on another server.

That will take some work, but I would really just like to know how to set some sort of timout like 10 seconds or so if they can't login, redirect them to another page.

Hello,

I have seen headers used for redirects, and from my FMStudio pages it seems that the following line of code is used to trap for errors:

if(is_a($result,"FX_Error") || $result['errorCode'] != "0") fmsTrapError($result,"error.php");

fmsTrapError is an FMStudio specific function that does the redirect to the requested page, but you could potentially use a Location HTTP header for the redirect.

Best,

Jose

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.