connect(); $startnum = 32; $limitlist = 10; //echo $open_DB -> where; $list = $open_DB -> boardlist("","registdate DESC ",1,1); $data_DB =new Admin_DB('posts','main',''); $startnum = 32; $limitlist = 10; //echo $open_DB -> where; $alist = $data_DB -> boardlist("","registdate DESC ",1,3); function content_string($string,$num = 100){ $string = strip_tags(trim($string)); if(strlen($string) < 10)return ''; //echo $string ; $position = stripos($string,' ',$num); if($position){ $substring = substr($string,0,$position); $substring .= '...'; }else{ $substring = $string; } return $substring; } $imgfolder = "http://test.worldevangelicals.org/board/img/"; $query = "select * from wea_videos order by registdate DESC "; $open_DB->query($query); while($vlist = $open_DB -> fetch()){ $videolists[] = $vlist; } ?>