fetch($key)) { $conn = new Connection(); $pdo = $conn->prepareQuery(); $table = $config->sql_tablename_publish_de(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY p_timestamp DESC LIMIT 10"); $stmt->execute(); $htmlcode = ""; $htmlcode =<< END; while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { $shortcode = $rows["p_shortcode"]; $headline = $rows["p_headline"]; $pic_desc = $rows["p_picture_1_description"]; $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); $titlewrap = wordwrap(substr($headline,0,55), 20, "
", true); $htmlcode .=<<$titlewrap ...
Bild: $pic_desc
END; } $htmlcode .=<< END; $stmt = null; // doing this is mandatory for connection to get closed $pdo = null; //
  •           
  • $content = array_merge( array('tickercontent'=>$htmlcode) ); $cache->store($key,$content,$config->newsticker_cache_ttl()); } // if (!$content = $cache->fetch($key)) { $design->setPath( "/home/www/wwwbuzzerstar/tpl-new/" ); $design->display_cache('ticker_de', $content, true, 3600*24*3); exit(0); ?>