hey,
i was making a login system using a text file instead of a database,
i have got most of it done but am stuck at listing the usernames in foreach() statement
this is the text file with the profiles of the users
is it possible to list users and how....
i can list the users password and email by having
but as you see you have to type in their username
i was making a login system using a text file instead of a database,
i have got most of it done but am stuck at listing the usernames in foreach() statement
this is the text file with the profiles of the users
is it possible to list users and how....
Code:
$data = array (
"users" => array (
"Extreme43" => array (
"Password" => "password",
"Email" => "email"
)
),
"banned" => array (
"insert ip here" => "banned"
)
);
i can list the users password and email by having
Code:
foreach($data['check']['Extreme43'] as $F1 => $F2) {
echo "$F1 : $F2<br>";
}