Mikijs Posted May 19, 2008 Report Share Posted May 19, 2008 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 More sharing options...
andrisp Posted May 19, 2008 Report Share Posted May 19, 2008 Es īsti nezinu kā tu strādā ar tām vēstulēm, bet tu taču viņas ielasi kaut kur pirms attēlo ? Tad PHP pusē arī kārto. Link to comment Share on other sites More sharing options...
Mikijs Posted May 19, 2008 Author Report Share Posted May 19, 2008 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 More sharing options...
Recommended Posts