Title | Added | Expires | ID | '); printf(''); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $title = $row['title']; printf('|||
---|---|---|---|---|---|---|
'.htmlspecialchars($row["title"], ENT_QUOTES, 'UTF-8').' | '); printf(''.date('Y-m-d',$row["created"]).' | '); if($row["expire"]==0) printf('Never | '); else{ $expire = ($row["expire"]-time())/3600; if($expire>24){ printf(''.round($expire/24).' days from now | '); } else if($expire>=1) printf(''.round($expire).' hours from now | '); else printf(''.round($expire*60).' minutes from now | '); } printf(''.htmlspecialchars($row["uid"], ENT_QUOTES, 'UTF-8').' |