amigos una consuta tengo este codigo :
$ssql = "SELECT * FROM usuarios WHERE ussuario='$user' and usu_clave='$clave'";
$rs = mysql_query($ssql,$conn);
if ($row = mysql_fetch_array($rs))
{
do
{
/*echo "si usuario exisre entrio aca<tr> \n";
echo "<td><I><B><font color='#FFFF00'>$row[0]</font></B></I></td> \n";
echo "<td><I><B><font color='#FFFF00'>$row[1]</font></B></I></td> \n";
echo "<td><I><B><font color='#FFFF00'>$row[2]</font></B></I></td> \n";*/
$id = $row[0];
echo "retorno id: $id\n";
if ($id ==1)
{
echo"<meta http-equiv='refresh' CONTENT='0;URL=fra_contenedorSuper.php'>";
exit;
}
if ($id ==2)
{
echo"<meta http-equiv='refresh' CONTENT='0;URL=fra_contenedor.php'>";
exit;
}
}
while ($row = mysql_fetch_array($result));
}
mi pregunta es puedo remplazar el querry por un sp ej:
mysql_query("CALL sp_select_usuarios($Id,'$Usuario', '$Nombre1','$ApellidoP', '$ApellidoM', '$Fono','$Mail','$Clave')",$conexion))
$rs = mysql_query($ssql,$conn);
if ($row = mysql_fetch_array($rs))
{
do
{
/*echo "si usuario exisre entrio aca<tr> \n";
echo "<td><I><B><font color='#FFFF00'>$row[0]</font></B></I></td> \n";
echo "<td><I><B><font color='#FFFF00'>$row[1]</font></B></I></td> \n";
echo "<td><I><B><font color='#FFFF00'>$row[2]</font></B></I></td> \n";*/
$id = $row[0];
echo "retorno id: $id\n";
if ($id ==1)
{
echo"<meta http-equiv='refresh' CONTENT='0;URL=fra_contenedorSuper.php'>";
exit;
}
if ($id ==2)
{
echo"<meta http-equiv='refresh' CONTENT='0;URL=fra_contenedor.php'>";
exit;
}
}
while ($row = mysql_fetch_array($result));
}