此代码出现错误,错误提示
解析错误:语法错误,意外的'0'(T_LNUMBER),预期的标识符(T_STRING)或变量(T_VARIABLE)或C:\ xampp \ htdocs \ project \ OrgChart-master \ OrgChart中的'{'或'$' -master \ memberForgotPassword.php,第32行
if(isset($_POST['registration']))
{
$registration = ($_POST['registration']);
if(!empty($registration))
{
//$cursor = $collection->find(array("registration" => $registration));
//$result = $cursor->count();
$result = $db->collection1->find(array("registration"=>$registration));
if($result->getModifiedCount()->0)
{
echo "Username Available";
}
else
{
echo "Please Enter The Correct Username";
}
}
}