Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/12/2009, 12:20
jetzona
 
Fecha de Ingreso: marzo-2006
Mensajes: 202
Antigüedad: 18 años, 2 meses
Puntos: 2
llamada a un procedimiento almacenado de MySql

Estimadicimos de nuevo por estas lares solicitando su ayuda, estoy tratando de invocar un procedimeineto almacenado pero no se como. me ayudan please.....

aca ta el codigo, primero ejecuto un update que funciona a mil, pero antes de terminar deberia llamar al procedimiento:


if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form2")) {
$updateSQL = sprintf("UPDATE planillas SET tipo_serv=%s, configuracion=%s, n_asientos=%s, bano=%s, chof_1=%s, n_chof1=%s, chof_2=%s, n_chof2=%s, aux=%s, n_aux=%s, patente=%s, status=%s, idtrip=%s WHERE cadena=%s",
GetSQLValueString($_POST['tipo_serv'], "text"),
GetSQLValueString($_POST['s_config'], "text"),
GetSQLValueString($_POST['n_asientos'], "int"),
GetSQLValueString($_POST['bano'], "text"),
GetSQLValueString($_POST['chof_1'], "text"),
GetSQLValueString($_POST['n_chof1'], "text"),
GetSQLValueString($_POST['chof_2'], "text"),
GetSQLValueString($_POST['n_chof2'], "text"),
GetSQLValueString($_POST['aux'], "text"),
GetSQLValueString($_POST['n_aux'], "text"),
GetSQLValueString($_POST['patente'], "text"),
GetSQLValueString($_POST['status'], "text"),
GetSQLValueString($_POST['idtrip'], "int"),
GetSQLValueString($_POST['cadena'], "int"));
mysql_select_db($database_lfox3, $lfox3);
$Result1 = mysql_query($updateSQL, $lfox3) or die(mysql_error());
$unidad_zn = "VII";
$descripcion = "SEPTIMA REGION";
$dominioK = "BNILAHUE";
$query = 'call IntroducePersona('.$unidad_zn.','.$descripcion.',' .$dominioK.')';
$result2 = mysql_query($query ,$lfox3) or die(mysql_error());

}


gracias a quien me ayude.....