I have stored my date in database in d/m/y format. How can I compare that with current date? here is my code. But its not working properly.
<!DOCTYPE html>
<html>
<body>
<?php
session_start();
include_once 'dbconnect.php';
date_default_timezone_set("Asia/Dhaka");
$t=time();
$d=date("d/m/Y");
$bar=date("l");
$time=date("h:i:sa");
$result=mysql_query("SELECT * FROM seminar WHERE date >= '$d'");
$cnt=mysql_query("SELECT COUNT(*) FROM seminar WHERE date >= '$d'");
$find=mysql_fetch_row($cnt);
$num=$find[0];
while($uRow=mysql_fetch_assoc($result))
{
echo "A Seminar on ".$uRow['about']." will be held in ".$uRow['place'] ." at".$uRow['time'].",".$uRow['date']."<br><br>";
}
//mysql_query("DLETE FROM seminar WHERE date < '$d'");
?>
</body>
</html>