Jump to content

Highlight feild before 1 month of expiry


Saiv

Recommended Posts

CAN YOU PLEASE CHECK THIS CODE, IT IS NOT WORKING..

 

               $today=Date('Y-m-d');
                 $date = $row[3];  //hosting_renewdate
                $remainder_date = strtotime ( '-30days' , strtotime ( $date ) ) ;
                $remainder_date = date ( 'Y-m-d' , $remainder_date );
 
                 list($year1,$month1,$date1)=split('[/.-]',$row[3]);
                 $renew_date=$year1."-".$month1."-".$date1;
                      
if(($today==$remainder_date) && $today<=$renew_date)

        echo " <tr bgcolor=yellow><td>$cnt</td><td>$row[0]</td><td>$row[1]</td><td>$hosting_renewdate</td></tr>";
               
else

       echo " <tr bgcolor=white><td>$cnt</td><td>$row[0]</td><td>$row[1]</td><td>$hosting_renewdate</td></tr>";

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.