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.

Auto Generate Data From Filemaker in PHP

Featured Replies

Hi, I am new to Filemaker and PHP (I am using FX.php) - so speak very slowly...

I am very familiar with Filemaker 6 and CDML and custom web publishing. On the opening page to my site an inline action is performed that searches an article database and pulls up the article that is marked with the correct date.

I want to do this with Filemaker 7 and PHP - I can do a search with a find page and a result page, but am not sure how to duplicate the inline action that I do in CDML so that the search automatically happens when the inital page is loaded... If someone can let me know how to do this I would be forever grateful!

Laura

You can "embed" a PHP script into the page to query the database and display the result.

Good Luck.

Garry

Hi, Laura! Welcome to FMFORUMS! Yeah, it used to bug me that FM could not query and show data on your 'first' page unless you put it all in the url. Even an INLINE would not work unless you tickled the Web Companion first. I haven't worked with PHP/FM yet, but in PHP/MySQL I can connect to a db, perform a query, get results, process the results however I like, and then display results all on the same page. The is possible because PHP resolves before the HTML is given to a visitor's web browser but unlike CDML, parameters and actions do not have to passed from the URL. They just request a web page and the server executes everything before giving them the web page.

It's nice to hear you can do this with PHP and FM. I wish I had the time to look into this now, but... maybe next summer (sigh).

Oh, BTW... if you'll be re-using this query, you may want to write it as a separate file and then use PHP's include ( ) function. CDML kinda had this, too, but I use it a lot in PHP.

--ST

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.