if($username!=""&&$password!=""){
$ckadmin="select * from admin where admin_user='$username' and admin_pass='$password'";
$resultckadmin=mysql_db_query($dbname,$ckadmin);
$numckadmin=mysql_num_rows($resultckadmin);
if($numckadmin>0){
$rowckadmin=mysql_fetch_array($resultckadmin);
else{
$ckmember="select * from member where mem_user='$username' and mem_pass='$password'";
$resultckmember=mysql_db_query($dbname,$ckmember);
$numckmember=mysql_num_rows($resultckmember);
if($numckmember>0){
$rowckmember=mysql_fetch_array($resultckmember);