I trying to do a validation by ajax and php, this is my ajax code:
function PrintRecibopapel()
{
    recibo = document.getElementById("txtCod").value;
    if(recibo == "")
        {
            alert("Debe Guardar el recibo antes de imprimir");
        }
    else
    {               
        //ImprimirPDF("modulos/reporte/ingresos/RPrintReciboPapel.php?cods="+recibo);
        $.ajax({
            method: 'GET',
            url: 'modulos/ingresos/actualizarIngreso.php',
            data: {recibo: recibo}
        })
    } 
    }               
The function PrintRecibopapel(); is in my form on an input with onclick
So, this is my php (other file):
<?php
include("../../libreria/engine.php");
$_SESSION["logError"] = array();
$recibo = $_GET["recibo"];
$sql = "UPDATE af_ing SET copia = 1 WHERE cod = '$recibo'";
$rs = mysql_query($sql);
?>
<script languaje= 'javascript'>
mostrarErrores();
actualizarPestana();
</script>
The error that the Google Chrome console is givin to me is this: VM2941:1 GET http://localhost/municipia1/modulos/ingresos/actualizarIngreso.php?recibo=2017-00090 404 (Not Found)
As you can see (at least me) is that the url is good and is passing the variable recibo fine, Do I am doing something wrong?
 
    