Lokasi:
/
home
/
u847703118
/
domains
/
alphamed.cloud
/
public_html
/
Ubah: check_data.php
<?php require 'db_connect.php'; try { echo "Users Table (First 5):\n"; $stmt = $pdo->query("SELECT id, username, branch, branch_id FROM users LIMIT 5"); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { print_r($row); } echo "\nBranches Table (First 5):\n"; $stmt = $pdo->query("SELECT * FROM branches LIMIT 5"); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { print_r($row); } } catch (Exception $e) { echo "Error: " . $e->getMessage() . "\n"; } ?>
Batal