Exemple #1
0
function confirmarCompra($idJogo, $idPlataforma, $nifCliente)
{
    $query = "\n         UPDATE Pagamento\n         SET comprado = CURRENT_TIMESTAMP\n               WHERE\n               idJogo = ?\n         AND   idPlataforma = ?\n         AND   nifCliente = ?\n      ";
    return executarSQLActionArgumentos($query, array($idJogo, $idPlataforma, $nifCliente));
}
function actualizarCliente($nif, $nome, $sexo, $email, $contacto, $morada)
{
    $query = "\n         UPDATE Cliente\n         SET\n            nome = ?, sexo = ?, email = ?, contacto = ?, morada = ?\n         WHERE\n            nif = ?\n      ";
    return executarSQLActionArgumentos($query, array($nome, $sexo, $email, $contacto, $morada, $nif));
}