I’m stuck on how to use mktime. How do i get the date to when the ban will be lifted?
$time = strtotime($banrow['time']); //when user got banned
//1 week
$banduration = 60*60*24*7;
$newtime = $time+$banduration;
echo date('Y-m-d',mktime());
Just
date("Y-m-d",$newtime);is all you need.