Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Code: Alles auswählen
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c
ORDER BY c.cat_order";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}
$category_rows = array();
while ($row = $db->sql_fetchrow($result))
{
$category_rows[] = $row;
// Kategorie Titel
if ( $row['cat_id'] == $viewcat ) { $this_cat_title = $row['cat_title']; }
// Kategorie Titel
}
$db->sql_freeresult($result);
Code: Alles auswählen
$kategorienholen = $memcache->get("kategorien");
if (!$kategorienholen)
{
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c
ORDER BY c.cat_order";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}
$category_rows = array();
while ($row = $db->sql_fetchrow($result))
{
$category_rows[] = $row;
// Kategorie Titel
if ( $row['cat_id'] == $viewcat ) { $this_cat_title = $row['cat_title']; }
// Kategorie Titel
}
$db->sql_freeresult($result);
$memcache->set("kategorien",$kategorienholen,0,120);
}