createdDate Search Problems

12 posts by 4 authors in: Forums > CMS Builder
Last Post: April 10, 2012   (RSS)

By nmsinc - April 9, 2012

Hi Jason,

Used your suggestion coded as follows (I may have missed something):

//temporarily store createdDate
$tmpcreatedDate = $_REQUEST['createdDate'];
unset($_REQUEST['createdDate']);
list($member_companiesRecords, $member_companiesMetaData) = getRecords(array(
'tableName' => 'member_companies',
));

$tmpcreatedDate2 = $_REQUEST['createdDate'];
unset($_REQUEST['createdDate']);
list($accountsRecords, $accountsMetaData) = getRecords(array(
'tableName' => 'accounts',
));

list($claims_submissionRecords, $claims_submissionMetaData) = getRecords(array(
'tableName' => 'claims_submission',
));


I receive a Undefined index error for each of the "$tmpcreatedate" lines

Suggestion?

Thanks - nmsinc
nmsinc

Re: [nmsinc] createdDate Search Problems

By (Deleted User) - April 10, 2012

Hi nmsinc,

If the lines regarding the $tmpcreatedDate are throwing an 'Undefined Index' error it means that the resource they are looking for ($_REQUEST['createdDate']) has not been set.

You'll need to check that the search form is submitting a field named 'createdDate' with a value (or, if this is not always the case, suppress the error warning by using @$_REQUEST['createdDate']).

Let me know if this helps,

Tom