Yes, I do have a connect.php file, including this code:
<?php
$servername = "localhost";
$username = "root";
$password = "Canopus88!";
$db = "whatever";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $db);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
echo "Connected successfully";
?>
The code I just executed I use in kennel.php,
I don't know what you mean with check if the query was successful...
The feed status is stored in my database in a column called feed whereas the amount is stored there, in a table called dogs