I'm doing a query to a database using php, the case is that it gives me
error ORA-01008: not all variables bound
And I do not know how to solve it. If you can help me, I appreciate it. The function that I am executing is:
function consultarCitasOcupadas($conexion, $dia, $usuario) {
$consulta = "SELECT HORA,DNI_PACIENTE,FECHA FROM CITAS"
. " WHERE (FECHA = TO_DATE(:dia,'DD/MM/YYYY')"
. " AND USUARIO_MEDICO=:usuario"
. " AND DNI_PACIENTE IS NOT NULL)"
. " ORDER BY HORA";
return $conexion->query($consulta);
}