6 Gru
2006
6 Gru
'06
12:21
Matys Łukasz wrote:
SELECT * FROM `users` LEFT JOIN assignments ON users.id = userid WHERE deleted =0 AND ( users.id IS NULL
^^^^^^^^^^^^ powinno być userid IS NULL
OR NOT ( ( datefrom <= UNIX_TIMESTAMP( ) OR datefrom =0 ) AND ( dateto > UNIX_TIMESTAMP( ) OR dateto =0 ) ) ) LIMIT 30 , 30
^^^^^^^^^^^ tzn. chciałeś 30 rekordów zaczynając od 30-go? wywal ten LIMIT
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg-2275252
LAN Management System Developer http://lms.alec.pl