0

I'm trying to query an SQL database, but I cannot get a simple "select" query to work. I don't get an error message but I don't get the values in the database either.

$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT id FROM 'visitor' WHERE visitorNumber=0";
$order = $conn->query($sql);
echo $order;


$conn->close();
Jay Blanchard
  • 33,530
  • 16
  • 73
  • 113

0 Answers0