Telegram Bot Unable to Retrieve Schedule Data via mysqli

Telegram bot fails to retrieve schedule details from a MySQL table. Try this revised PHP snippet:

<?php
$connection = new mysqli('server','user','pass','database');
$today = date('Y-m-d');
$sql = "SELECT info FROM timetable WHERE date='$today'";
$resultSet = $connection->query($sql);
if($incomingMessage == 'info') { replyMessage($chatID, $resultSet->fetch_assoc()['info']); }
?>

hey, i ran into a sim issue once. try dumping mysqli_error($connection) to verify query execution. sometimes a typo in field names or mismatched date formatting can cause probs. hope this help, lol