Jump to content
php.lv forumi

pop3 sorting


Mikijs

Recommended Posts

vai ir kada specifiska funkcija jeb kads veids ka kartot pop3 vestules?

 

piemeram man ir db vestules kuras sorteju ar sql "order by .. desc/asc" vai ar "imap_headers" arii kaut ka lidzigi var darit? vai kads cits variants?

Link to comment
Share on other sites

ir tipa funkcija atradu http://lv2.php.net/imap_sort imap_sort bet :/ man jau tipa jalabo mails tapec pasam gruti pateikt

 

tipa vinjs veido funkciju

 

imap_headers($this->mbox);

es izvadu to $this->mbox uzradas ka "Resource id #77";

tad es uztaisiiju funkciju kura veido to kartosanu

 switch($sort[type]){
  case 1: $sortype="SORTFROM";break;
  case 2: $sortype="SORTSUBJECT";break;
  case 3: $sortype="SORTDATE";break;
  case 4: $sortype="SORTSIZE";break;
 }
if($sort[method]=="desc") $sortype.=", 1";

 

:/ bet neka..

Link to comment
Share on other sites

×
×
  • Create New...