=]ReDHeaD[=
Mitglied
schaut mal, ich hab den code :
wie bekomm ich es hin, dass es jeweils für 2 links die gleiche zahl gibt?
hatte schon:
geht aber alles nicht
Code:
while ($rows = mysql_fetch_assoc($result)) {
$x++;
$len = strlen($rows['title']);
if ($len >= 20) {
$rows['title'] = substr($rows['title'],0,20);
}
echo "<a href=\"./index.php?menupoint=".$_REQUEST['menupoint']."&section=news&page=".$x."\">".$rows['title']."...</a>
";
}
wie bekomm ich es hin, dass es jeweils für 2 links die gleiche zahl gibt?
hatte schon:
Code:
if ($x % 2 !== 0) {
$x--;
}
geht aber alles nicht