Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6058 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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 :

Posted


$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;

This topic is 6058 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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