Ver Mensaje Individual
  #16 (permalink)  
Antiguo 07/03/2012, 15:33
Avatar de a_gomez
a_gomez
 
Fecha de Ingreso: marzo-2012
Ubicación: /var/www/
Mensajes: 48
Antigüedad: 12 años, 1 mes
Puntos: 2
Respuesta: llamar procedures de sql server en php y odbc ..

Código PHP:
Ver original
  1. <?php
  2.    
  3.     include("../conexion/conexion_workflow.php");
  4.  
  5.     if(isset($_POST["numrecibo"])){
  6.         $recibo=$_POST["numrecibo"];
  7.     }
  8.     $stmt= odbc_prepare($conexionw, 'CALL REINGRESARRECIBOSIREP('.$recibo.')');
  9.     $exito = odbc_execute($stmt, array($recibo));
  10.    
  11.     if (!$exito) {
  12.             exit("<strong>ERROR EN EL PROCESO DE EJECUCION </strong>");
  13.         }else{
  14.             header("location:../../sitio/administrador/reingresarrecibo.php?msj=true");
  15.        
  16.         }
  17.        
  18. ?>