PHP Member Login

Also, im working on my login page. But from the coding, i dont understand how to add a username and password. do i do it in my php on my sites control panel or do i do this inside the AS.

here is the data.php file

 
<?php

$dbc = mysql_connect("localhost","your_mysql_username","your_mysql_password");
mysql_select_db("your_database_name");

?>

and here is the login.php code

 
$query = "SELECT * FROM your_database_table WHERE user = '$user'";
$rs = mysql_query($query);

$var = mysql_fetch_assoc($rs);

if($rs){
   if($var['pass']==$pass){
      echo "&login=OK";
   } else {
      echo "&login=BAD";
   }
} else {
   echo "&login=BAD";
}

mysql_close($dbc);

?>

if you can imagine a loader that loads my pages in the balnk space of my site. There will be a member page… Which takes them to the login page. After they login, it takes them to the download info page.

the username is harvestmember and the password is harvestlogin not very secure i know, almost worthless, but here in the UK they have data protection, and this minimal security covers our back.

thanks for any hel