Menu
I don’t know why I’m not getting error reports and that there is nothing being shown, there is data in the database.
Login info ommited
I’m trying to echo back the last entry for a specific column.
[code=php]<?php
error_reporting(E_ALL);
error_reporting(-1);
$servername = “localhost”;
$username = ” “;
$password = ” “;
$dbname = ” “;
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = “SELECT TOP 1 Rc FROM computers
ORDER BY Rc DESC”;
$result = $conn->query($sql);
echo “$result”;
?>