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.

problem with error reporting php

Featured Replies

  • Newbies

hee guys !,

I am now working with Filemaker for a few weeks and come up with a problem:

i have this

$request = $GLOBALS['db']->newEditCommand('Account', $_SESSION['user_id']);

$request->setField('Username', $_SESSION['username']);

$request->setField('Password', $_SESSION['password']);

$request->setField('Email', $_SESSION['email']);

$request->execute();

if(FileMaker::isError($request)){

$error_code = $request->code;

if($error_code==500){

return false;

} else {

return false;

}

} else {

return true;

}

I want that if the Date value does not meet validation entry options it should give false.

but what am I doing wrong here ?

I have been over this problem for hours !!

please help ... thanxs :


$request = $GLOBALS['db']->newEditCommand('Account', $_SESSION['user_id']);

$request->setField('Username', $_SESSION['username']);

$request->setField('Password', $_SESSION['password']);

$request->setField('Email', $_SESSION['email']);

$request->execute();





The request object is just that, you need to provide a container for the result to sit in (this is assuming its sitting in a function, otherwise i'm not sure why you're returning values):





$request = $GLOBALS['db']->newEditCommand('Account', $_SESSION['user_id']);

$request->setField('Username', $_SESSION['username']);

$request->setField('Password', $_SESSION['password']);

$request->setField('Email', $_SESSION['email']);

$result = $request->execute();



if(FileMaker::isError($result)){

   if($result->code==500)return false;

}

return true;

  • Author
  • Newbies

thanxs ! ..

and yes this is in function edit_account();

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.