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.

Conditional/Relational Database

Featured Replies

  • Newbies

I have a database of restaurants that have menus in the database.. which I have on the web... right now someone can choose a city(s) and a cuisine(s) and it will list the the restaurants then when the click on the restaurant the menu appears..

What I need to do is have it so that when they choose a city the only cuisines that show up are the available ones for that city. I am just stumped! I've tried everything... I know how to make a database just the city's and cuisines to choose a city and have only the cuisines come up but I can't figure out how to link it to the main database with the info of restaurants in it. Any help would be appreciated!! Thanks in advance..

Lori

If I understand you correctly, you have two fields: City and Cuisine. Further, and as and example, one might find French Cuisine in several cities. What you desire is that when a user selects one city and one style of cuisine, only the records appropriate for that style of cuisine which are located in that city will appear. Also, you are doing this through a custom web page, not instant web publishing of your database.

In order to force a search of two fields in one find from a format file, one must insert the line (edited for "field name") <input type="hidden" name="field name" value="=="> immediately preceeding the code allowing the selection of the desired data. This is the same treatment one would use for searching for a user's name and a user's unique identifier.

If your user were to type in the names of the city and the cuisine, the code might read:

<input type="hidden" name="city" value="=="><input type="text" name="city" value="">

<input type="hidden" name="cuisine" value="=="><input type="text" name="cuisine" value="">

If you are using buttons or a drop-down, you will have to work it out from this. Hope you find this useful. Good Luck.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.