I've multiple arrays received from db table. now i'm trying to check "is their birth date == current date" if yes then their contact numbers saved in a array called birthdays
Here is my try
$curr_date = date('m/d');
$birthday = array(); // array initialization
$anniversary = array(); // array initialization
$con=mysqli_connect("localhost","root","","birthdays");
$sql="SELECT * FROM users";
$result=mysqli_query($con,$sql);
$row=mysqli_fetch_assoc($result);
echo "<pre>";
if ($result=mysqli_query($con,$sql))
{
while ($row=mysqli_fetch_assoc($result))
{
print_r ($row);
}
}
Here is a image of current code with expected description
I'm trying lot of time but unable to achieve exact result. kindly guide me. Thanks