Jump to content
php.lv forumi

DISTINCT


anonīms

Recommended Posts

Izvada

* test - 2009-10-21 01:20

* test - 2009-10-21 01:20

* kas - 2009-10-21 01:17

* kas - 2009-10-21 01:17

* adada - 2009-10-21 01:16

test, kas, adada ir foruma tematu nosaukumi.

Izvelku ar

mysql_query("SELECT * FROM ".PREFIX."forums_atbildes ORDER BY datums DESC LIMIT 5");

 

 

bet nepieciešams, lai būtu

* test - 2009-10-21 01:20

* kas - 2009-10-21 01:17

* adada - 2009-10-21 01:16

mēģināju šādi:

mysql_query("SELECT DISTINCT temats FROM ".PREFIX."forums_atbildes ORDER BY datums DESC LIMIT 5");

bet viņš nesarindo pēc datuma..

struktura ir tāda pati kā ipb forumiem..

pamatkods: http://paste.php.lv/19bf41ef0d8e30c27d5665e9520304e9?lang=php

 

 

--

 

Ko lai dara?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...