Hallo Eike,
Ich versuche schon länger mir alle ergebnisse von 3-5 auszugeben was nicht klappt. ORDER by ID LIMIT 0,2 geht ohne probleme. Er gibt mir zwei ergebnisse aus.
Wenn ich allerdings ORDER by ID LIMIT 3,5 angebe gibt er mir 4 ergebnisse aus! Warum wei ich net. Wenn ich eingebe ORDER by ID LIMIT 5,3 gibt er mir korrekt 2 aus.
Aber logisch betrachtet ist das ja komisch.
Nein:
»With two arguments, the first argument specifies the offset of the first row to return, and the second specifies the maximum number of rows to return. The offset of the initial row is 0 (not 1)«
(http://dev.mysql.com/doc/mysql/en/SELECT.html)
Du möchtest also LIMIT 3,2 verwenden.
Schöne Grüße,
Johannes
--
Das sage ich deshalb, weil ich Hompagebauer bin und Ahnung davon .
ss:| zu:) ls:[ fo:) de:] va:) ch:) n4:| rl:) br:< js:| ie:{ fl:( mo:}
Das sage ich deshalb, weil ich Hompagebauer bin und Ahnung davon .
ss:| zu:) ls:[ fo:) de:] va:) ch:) n4:| rl:) br:< js:| ie:{ fl:( mo:}