Pages

PHP timestap to MySQL date

Function given below separates the timestamp and returns as desired,
function timestamp2datime($timestamp){
 $datime = NULL;
 $year = substr($timestamp, 0, 4);
 $month = substr($timestamp, 4, 2);
 $day = substr($timestamp, 6, 2);
 $hour = substr($timestamp, 8, 2);
 $min = substr($timestamp, 10, 2);
 $datime .= "$month/$day/$year {$hour}:$min";

 return $datime;
}
If you wan to change mysql timestamp to php date format,you cann use this.
function timestamp2date($timestamp){
 $date = NULL;
 $year = substr($timestamp, 0, 4);
 $month = substr($timestamp, 4, 2);
 $day = substr($timestamp, 6, 2);  
 $date .= "$month/$day/$year";
 return $date;
}

3 jQuery ebook free download

Book Name : jQuery UI 1.6
Publisher : PACKT
Author : Dan Wellman
ISBN 13 : 9781847195128
Buy : Amazon
Download : Click here
Source code : Click here

Book Name : jQuery in Action
Publisher : PACKT
Author : Bear Bibeault, Yehuda Katz
ISBN 13 : 978-1935182320
Buy : Amazon
Download :  Click here
Source code : Click here
Book Name : Learning jQuery 1.3
Publisher : PACKT
Author : Jonathan Chaffe
ISBN 13 : 9781847195128
Buy : Amazon
Download : Click here
Source code : Click here