hi, ich bin schon einen ganz kleinen schritt weiter denn ich habe noch kategorien und ich will nur in der jeweiligen kategorie blättern
Code:
<?php
$sql = "SELECT conid, sectionid FROM ecms_content WHERE sectionid=$sectionid AND conid > $conid
ORDER BY id ASC
LIMIT 1
";
?>
<?php echo $sql; ?>
raus bekomme ich das hier
Code:
SELECT conid, sectionid FROM ecms_content WHERE sectionid=7 AND conid > 15640 ORDER BY id ASC LIMIT 1
die aktuelle content id mit 15640 ist richtig und auch die kategorie mit 7 aber wie bekomme ich nun die vorherige bzw. nächste ausgabe??