Newbies heldopslippers Posted April 12, 2008 Newbies Posted April 12, 2008 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 :
Genx Posted April 15, 2008 Posted April 15, 2008 $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;
Newbies heldopslippers Posted April 15, 2008 Author Newbies Posted April 15, 2008 thanxs ! .. and yes this is in function edit_account();
Recommended Posts
This topic is 6326 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 accountSign in
Already have an account? Sign in here.
Sign In Now