i am tried to display the current birthday by matching the current date .
Mysql date format was 16 September 1990, So i trimmed the year from the current date and echoed 16 Sep, Now how to echo ,if the current date is equal to the date in the row . I tried the below method ,it was an error .
$timezone = new DateTimeZone("Asia/Kolkata" );
$date = new DateTime();
$date->setTimezone($timezone );
$date2= $date->format( 'd M' );
$date4=date('d M', strtotime($date2));
<?php $sel = $db->query("select * from mov_birthday where date('d M', strtotime(dateofb)) == '$date4' order by dateofb");
while($row=mysql_fetch_array($sel)){
echo ($row['name']); } ?>
You can use
like: