Thank you for the contribution. It has been approved.
Indeed another good post.
Please consider sanitising the user inputs and using prepared statements to prevent SQL injection.
$todate = $_GET["toDate"];
if ($todate) {$sql.=$todate;} else {$sql.=date("Y-m-d");}
You can contact us on Discord.
[utopian-moderator]
Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Thank you for the expert advice helo. Will definitely include this in future updates.