Hey guys, I setup a page to input information into a database, but to do so, the page is password protected, and each user has an authentication password which goes through a salted hash. What I wanted to do is keep the variables in php (because I don’t know how to do it with a database) with something like this..
Code:
$user_authentication = array(
‘users’ => array(
‘dyllon’ => ‘foo’,
‘robb’ => ‘bar’
)
);
So if the user types in foo to authenticate, it returns that dyllon has inserted information into the table, and if bar is used, it returns that robb did.
Is there a way I can search the array for the specified value, as well as return it’s key?