da diese abfrage:
$abf = <<< query
SELECT
a.news_title as title,
a.news_id as id,
DATE_FORMAT(a.news_time,'%d. %m. %Y') as datum,
DATE_FORMAT(a.news_time,'%W') as dayofweek,
a.news_kat as kate,
a.news_text as text,
b.name as username
FROM prefix_news as a
LEFT JOIN prefix_user as b ON a.user_id = b.id
WHERE {$_SESSION['authright']} <= a.news_recht
OR a.news_recht = 0
ORDER BY news_time DESC
LIMIT {$anfang},{$limit}
query;
verändern in:
$abf = <<< query
SELECT
a.news_title as title,
a.news_id as id,
DATE_FORMAT(a.news_time,'%d. %m. %Y') as datum,
DATE_FORMAT(a.news_time,'%W') as dayofweek,
a.news_kat as kate,
a.news_text as text,
b.name as username
FROM prefix_news as a
LEFT JOIN prefix_user as b ON a.user_id = b.id
WHERE ({$_SESSION['authright']} <= a.news_recht
OR a.news_recht = 0)
AND news_kat = 'Einsätze'
ORDER BY news_time DESC
LIMIT {$anfang},{$limit}
query;
ansonsten meldeste dich gell
... sollte aber so gehen sonst würde schon derb was schief gehen.
und bitte poste nicht das ganze sciprt wir kennen das script
und nutz [code] blöcke anstatt [php] weil php gibts hier nicht