PHP Convert Datetime DB fields to timespan

< ?php $curentdate=mktime(date("h"), date("i"), date("s"), date("m") , date("d"), date("Y")); $curentdatestart=mktime(date("h",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("i",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("s",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("m",strtotime($row_ekpompes['ext_series_trailer_startdate'])) , date("d",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("Y",strtotime($row_ekpompes['ext_series_trailer_startdate']))); $curentdateend=mktime(date("h",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("i",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("s",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("m",strtotime($row_ekpompes['ext_series_trailer_enddate'])) , date("d",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("Y",strtotime($row_ekpompes['ext_series_trailer_enddate']))); // strtotime if($row_ekpompes['ext_series_trailer_startdate']!=null && $row_ekpompes['ext_series_trailer_enddate']!=null && $row_ekpompes['ext_series_trailer']!=null){ if($curentdatestart=$curentdate ){ $video=$row_ekpompes['ext_series_trailer']; }else { $video=$row_ekpompes['ext_trailer']; } }else { $video=$row_ekpompes['ext_trailer']; } echo $video."===="; echo date('h:i:s / m/d/y'); echo "===".$curentdate."---".$curentdatestart."---".$curentdateend; echo $row_now['ext_trailer']."----"; echo $row_now['ext_series_trailer']."----"; echo $row_now['ext_series_trailer_startdate']."----"; …

Browser script No-cashe

In HTML <meta http-equiv=”Expires” content=”Tue, 01 Jan 2000 12:12:12 GMT”> <meta http-equiv=”Pragma” content=”no-cache”> In ASP/IIS: http://support.microsoft.com/support/kb/articles/Q234/0/67.asp <% Response.CacheControl = “no-cache” %> <% Response.AddHeader “Pragma”, “no-cache” %> <% Response.Expires = -1 %> In PHP: http://www.php.net/manual/en/function.header.php < ?php Header('Cache-Control: no-cache'); Header('Pragma: no-cache'); ?> In COLD FUSION: <cfheader name=”Expires” value=”#Now()#”> <cfheader name=”Pragma” value=”no-cache”> In JSP: http://www.jguru.com/faq/view.jsp?EID=377&page=2 <% response.setHeader(“Cache-Control”,”no-cache”); …

Mail php headers

$to = ‘info@eee.com’; $headers = “MIME-Version: 1.0\n”; $headers .= “Content-type: text/html; charset=utf-8\n”; $headers .= ‘From:info@eee.com’. “\r\n” .              ‘Bcc: eee@eee.gr’ . “\r\n” .              ‘Bcc: eee@eee.gr’ . “\r\n”; $headers .= “Reply-To:eee\n”;  $headers .= “X-Priority: 1\n”; $headers .= “X-mailer: DAUMED\n”;  $headers .= “X-MSmail-Priority: High\n”; $subject=”eee Contact …

Fixed positioning CSS

Fixed positioning This post will hopefully be updated when I have done a little more (like explaining stuff and publishing combinations of three, maybe four columns), for now: Fixed header Fixed header and left-sidebar Fixed header and right-sidebar Fixed header and footer Fixed left-sidebar Fixed left-sidebar and header Fixed left-sidebar and right-sidebar Fixed left-sidebar and …

How to turn off the right-click functionality in Internet Explorer 5.0 or a later version

The following article describes how to use FrontPage 2000 to turn off the right-click functionality in Microsoft Internet Explorer versions 5.0 or a later version. These examples use JavaScript in an attempt to discourage users from saving copyrighted images to their computers.