06-28-2008, 09:45 AM
|
#3 (permalink)
|
|
The Visitor
Join Date: Jun 2008
Location: Zagreb, Croatia
Posts: 4
Thanks: 3
|
Ok, tnx, I'm going to wedding soon, so I'll test it when I get back, but when I just look at it, seems fine ...
EDIT: another question, if I have table messages:
ID name content read datetime
1 foo fooo ,1,2 12
2 foo2 fooo2 ,2 19
3 foo3 fooo3 ,3,1 16
4 foo4 fooo4 , 21
current userID is 1, when I sort it, I want to have:
ID name content read datetime
2 foo2 fooo2 ,2 19
4 foo4 fooo4 , 21
1 foo fooo ,1,2 12
3 foo3 fooo3 ,3,1 16
so first goes all messages that are not read (all which doesn't have current userID in `read`), and those are sorted with datetime ... how would query be ?
btw. sorry for my english ...
Last edited by mfolnovich : 06-28-2008 at 10:13 AM.
|
|
|