I would like to ask what is where(array('username')=>$username)). Can arrays be used as conditions when querying the database? $admin['username']. Can't you directly compare the data in the form with the database? If you need to verify the format of the submitted data, you can use the vaildate method
I would like to ask what is where(array('username')=>$username)). Can arrays be used as conditions when querying the database? $admin['username']. Can't you directly compare the data in the form with the database? If you need to verify the format of the submitted data, you can use the vaildate method