PHP, admins usersystem
<p>I was wondering if you think this is possible:
Ok so I have a database storing usernames and I would like to echo the admins which are inside a file called admins.php IF they match the usernames inside the database so far I have got:</p>

<pre><code>admins.php;
$admins = array("username","username2","username3");
</code></pre>

<p>and</p>

<pre><code>$users="SELECT username from usrsys";
$query_users=mysql_query($users);
while loop here.
</code></pre>

<p>The while loop should hopefully echo the users which matches the admins.php file. I assume I should use something like (inarray()), but I am really not sure.</p>
