Skip to content

Commit

Permalink
Ajuste em prod03: Funcionou
Browse files Browse the repository at this point in the history
  • Loading branch information
ramosbrp committed Jun 27, 2024
1 parent dbfdf04 commit 1946ccc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/cadastro.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@

if ($stmt->execute()) {
$responseArray = ['success' => true, 'message' => 'Cadastro realizado com sucesso!'];
// echo json_encode($responseArray);
echo"<script>console.log('if')</script>";
echo json_encode($responseArray);
// echo"<script>console.log('if')</script>";
} else {
throw new Exception("Failed to execute the SQL statement.");
}
} catch (Exception $e) {
echo"<script>console.log('$e')</script>";
// echo json_encode(['success' => false, 'message' => $e->getMessage()]);
// echo"<script>console.log('$e')</script>";
echo json_encode(['success' => false, 'message' => $e->getMessage()]);
}
}

0 comments on commit 1946ccc

Please sign in to comment.