Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/11/2007, 13:35
Avatar de tricampeon27
tricampeon27
 
Fecha de Ingreso: enero-2007
Ubicación: Macul
Mensajes: 300
Antigüedad: 17 años, 3 meses
Puntos: 0
Pregunta Procedimientos en php??????

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));

}
__________________
*****Si Hasta En La Cana X Ti Estado*****