Since yesterday I have been having a very strange problem at the time and updating data in my DB. I have always been able to update data, but I can not do it with this command:
if(isset($_POST['salvarNao'])){
$acordoo = $_POST['acordoo'];
$dataProximaAudi = $_POST['dataProximaAudiencia'];
$dataP = explode('-', $dataProximaAudi);
$dataProximaAudi = $dataP[0].$dataP[1].$dataP[2];
$sqlNao = "UPDATE [RDO].[dbo].[reclamatoria] SET acordoNAO='$acordoo', dataProximaAudiencia='$dataProximaAudi' WHERE ID='$id_reclamatoria'";
$stmt = sqlsrv_query( $conn, $sqlNao );
}
Is there anything wrong with my code? the current date I have in the database is 1900-01-01 00:00:00 00, field datetime