$id = trim($_GET['id']); header('Location: http://www.worldea.org/index.php/prayer/'.$id); require('../_func/wea.all.php'); $open_DB =new DB; $data_DB =new DB; $open_DB -> connect(); $open_DB -> query('set names utf8'); $id = isset($_REQUEST['id'])? $_REQUEST['id']:'2'; $cat = isset($_GET['cat'])?$_GET['cat']:'top'; $query = "select * from wea_prayers where cat= '".$cat."' and id= '".$id. "'"; $open_DB->query($query); $tablename = "wea_prayers"; $list = $open_DB -> fetch(); //var_dump($list); $date = $list['signdate'];//2008-09-02 11:28:30 $s=(int)substr($date,17,2); //second $m=(int)substr($date,14,2); //minute $h=(int)substr($date,11,2); // hour $d=(int)substr($date,8,2); //dat $mon=(int)substr($date,5,2); //month $y=(int)substr($date,0,4); //year $date = mktime($h,$m,$s,$mon,$d,$y); //image $articleimage1 = $list['imagename1']; $articleimage2 = $list['imagename2']; $articleimage3 = $list['imagename3']; $articleimage4 = $list['imagename4']; $position = $list['position']; $imgpath = $_SERVER['DOCUMENT_ROOT'].'/board/app/webroot/img/'; $imgurl = "/board/img/"; if($articleimage1){ $info1 = getimagesize($imgpath.$articleimage1); $width = $info1[0] > 550 ? 550 : $info1[0]; } ?>
Last modified: