Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/09/2014, 07:04
plasma_go
 
Fecha de Ingreso: mayo-2014
Ubicación: Mexico
Mensajes: 79
Antigüedad: 10 años
Puntos: 2
Respuesta: Validar si se inserto correctamente

Este es el codigo de insercion:

Código PHP:
Ver original
  1. include_once("../php/dbconfig.php");
  2. include_once("../php/functions.php");
  3.  
  4.  
  5. $db = new DBConnection();
  6. $db->getConnection();
  7.  
  8.  
  9. $sql = "INSERT INTO AGENDA(RPU, HORAI, HORAF, IDCAUSA, IDCATMATRIX, RPE, ISALLDAYEVENT) VALUES ('" .$rpu. "','" .$fecha. " " .$hora. "','" .$fecha. " " .$h. ":" .$m. "','" .$idcausa. "','" .$idmat. "','" .$rpe. "',0)";