home
/
u529748449
/
domains
/
borabilhete.com
/
public_html
/
public
➕ New
📤 Upload
✎ Editing:
verifica_pagamento.php
← Back
<?php include '../admin/conexao.php'; header('Content-Type: text/plain'); // Obtém o ID do pedido $id = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT); if (!$id) { echo 'erro'; exit; } // Verifica o status do pagamento no banco $stmt = $conn->prepare("SELECT status_pagamento FROM pedidos WHERE id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); $result = $stmt->get_result(); if ($row = $result->fetch_assoc()) { if (strtolower($row['status_pagamento']) === 'pago') { echo 'pago'; } else { echo 'aguardando'; } } else { echo 'erro'; } ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel