Este es el codigo de insercion:
Código PHP:
Ver originalinclude_once("../php/dbconfig.php");
include_once("../php/functions.php");
$db = new DBConnection();
$db->getConnection();
$sql = "INSERT INTO AGENDA(RPU, HORAI, HORAF, IDCAUSA, IDCATMATRIX, RPE, ISALLDAYEVENT) VALUES ('" .$rpu. "','" .$fecha. " " .$hora. "','" .$fecha. " " .$h. ":" .$m. "','" .$idcausa. "','" .$idmat. "','" .$rpe. "',0)";