Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8541639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:52:35+00:00 2026-06-11T11:52:35+00:00

i am tried to display the current birthday by matching the current date .

  • 0

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']); } ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:52:36+00:00Added an answer on June 11, 2026 at 11:52 am

    You can use like:

    // this will select every date that starts with date('d M') - day Month
    $timezone = new DateTimeZone("Asia/Kolkata" );
    $date = new DateTime();
    $date->setTimezone($timezone);
    $dateFormat = $date->format( 'd F' );
    $sel = $db->query("SELECT * FROM `mov_birthday` where `dateofb` LIKE '".$dateFormat."%' ORDER BY `dateofb`");
    while($row = $sel->fetch(PDO::FETCH_ASSOC)) {
        echo $row['name'];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get the Bitmap from URL like - https://graph.facebook.com/100003506521332/picture I tried how-i-can-display-images-from-url-in-blackberry
I am trying to retrieve and display information about current weather from a JSON
Hello i am learning php i tried to use the date function to display
I tried to display the url using all sorts of methods of HttpRequest, I
Problem occured when i tried to display xml data that has been taken by
Can someone help me find the error when I tried to display the list
I have tried using the code below but it only display results in Chrome
I have tried <display:table name=jobTrackerCol pagesize=20 sort=list id=data requestURI= class=tablelist> <display:column title=Request Id sortable=true
This page should display a Google ad. I Tried everything but it's not working.
I want to display a success msg after finishing an Ajax call. I tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.