Hi, I'm trying to make an insert to a sql server database with php. I execute the program and I get the message that it was inserted correctly but when I go to look in the database it does not insert anything and I can not find the error. This is my code:
<?php
include("conexion.php");
$sql = "INSERT INTO fed_ublextensions(MPK_EMIS_ID,MPK_RECE_ID,MPK_ID,DIN_INVOICE_AUTHORIZATION,DDA_START,DDA_END,DVC_PREFIX,
DIN_FROM,DIN_TO,DCH_IDENTIFICATION_CODE,DIN_PROVIDERID,DVC_SOFTWAREID,DVC_SOFTWARESECURITYCODE,DDE_REPERCUSSIONS,DDE_TOTALTAX,DDE_TOTALCURRENCYAMOUNT)
VALUES ('a','1','b','2','c','3','d','4','e','5','f','6','g','7','h','8')";
// arreglo acentos
$qry_code = utf8_decode($sql);
// Ahora ejecutamos el INSERT en la BD
$recurso=sqlsrv_prepare($conn,$qry_code);
$ejecutar=sqlsrv_execute($recurso);
?>