buenos dias es que tengo un problema para inicar el modo admnistrador no me resulta
<?php
session_start();
include_once'conec.php';
$eil=$_REQUEST["usura"];
$contr=$_REQUEST["password"];
$ref=$_REQUEST["cbos"];
if($ref=="administrador"){
$estandar2=mysql_query("select * from admi where no_usuario='".$eil."' and contrasena='".$contr."'",$cn);
if($row2=mysql_fetch_array($estandar2)){
if($contr==$row2['contrasena']){
header("location: admin.php");
}
else{
echo '<script>alert("clave incorrecta")</script>';
echo "<script>location.href='untitled-1.php'</script>";
}}
else{
echo '<script>alert("usuario incorrecto")</script>';
echo "<script>location.href='untitled-1.php'</script>";
}
$_SESSION["clave"]=$row['contrasena'];
}
if($ref=="usuario"){
$estandar=mysql_query("select*from usuario where nom_usuario='".$eil."' and pass='".$contr."'",$cn);
if($row=mysql_fetch_array($estandar)){
if($contr==$row['pass']){
header("location: fe.php");
}
else{
echo '<script>alert("clave incorrecta")</script>';
echo "<script>location.href='untitled-1.php'</script>";
}}
else{
echo '<script>alert("usuario incorrecto")</script>';
echo "<script>location.href='untitled-1.php'</script>";
}
$_SESSION["clave"]=$row['pass'];}
?>