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.

Bug in my FMFind Code

Featured Replies

Find A Course

course_name

starting_date

venue

presenters

stream

type_of_search:

Find All

Find Any

       Find       

  • Author

I spotted a syntax error in $starting_date but I have fixed this and still no joy.

Here is some code I use to trouble shoot:

print "

-";

print_r($somevariable); //use a variable you want to check on

print "-

";

This prints the variables neatly so you can see what is happening

You might try $Course_SearchData for $somevariable and place the code in around line 33 of your code.

also

print_r($REQUEST); //will show all the variables being posted.

And finally what do you get for:

echo $Course_SearchResult['errorCode'];

Is there an errorCode at the top of the page other than '0' ?

hang on a second...

you have two 'foreach() statements in your php

Remove the:

foreach($Course_SearchResult['data'] as $key=>$Course_SearchData);

from the header and you should be fine...

This is because you are wanting to use it in the html to provide a list of courses.

  • Author

Thanks for the above. I fixed the bug though I'm not sure how. However I did want to remove the second foreach stuff and have now done so.

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.