Hi, I meet some problem in debugging php files.
this is the one running smoothly
[code=php]$query = "select account.id as account_id from account
where (date(creationd ate)=date(curre nt_date-interval '1 days') or account.status= 'DELETED');[/code]
but when I changed the condition to:
[code=php]if ($result_array['creationdate'] != date(current_da te-interval '1 days'))
{
//do something
}[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
there is parse error for '1 days'
parse error, unexpected T_CONSTANT_ENCA PSED_STRING
can anyone throw some idea??
Thank you
this is the one running smoothly
[code=php]$query = "select account.id as account_id from account
where (date(creationd ate)=date(curre nt_date-interval '1 days') or account.status= 'DELETED');[/code]
but when I changed the condition to:
[code=php]if ($result_array['creationdate'] != date(current_da te-interval '1 days'))
{
//do something
}[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
there is parse error for '1 days'
parse error, unexpected T_CONSTANT_ENCA PSED_STRING
can anyone throw some idea??
Thank you
Comment