reenadak icon

function to get time difference

reenadak | PRO | 09/25/17 06:56:49 PM UTC | 0 ⭐ | 272 👁️ | Never ⏰ | []
text |

230 B

|

None

|

0 👍

/

0 👎

	function get_days($row)
	{
		$diff = strtotime($row['duedate']) - strtotime(date('Y-m-d'));
		$diff_days = floor($diff/(60*60*24));
		$html = abs($diff_days)<10000 ? '<td>'.$diff_days.'</td>' : '<td> </td>';
		return $html;
	}

Comments