MessingAround

Hi, this page is a mess around page.

[insert_php]

$servername = “localhost”;
$username = “hivemon”;
$password = “hivemonrip007()”;
$dbname = “farm”;

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die(“Connection failed: ” . $conn->connect_error);
}

$sql = “SELECT `time`, `weight` FROM `weight` where hive = ‘Crash’ order by time”;
$result = $conn->query($sql);

if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo “time: ” . $row[“time”]. “weight: ” . $row[“weight”]. “
“;
}
} else {
echo “0 results”;
}
$conn->close();

[/insert_php]

Just another WordPress site