jauninjais Posted May 31, 2006 Report Share Posted May 31, 2006 (edited) labdien, kaa vareeja noteikt cikos caur formu tika submitota informaacija? Edited May 31, 2006 by jauninjais Link to comment Share on other sites More sharing options...
Vebers Posted May 31, 2006 Report Share Posted May 31, 2006 http://lv2.php.net/filemtime Link to comment Share on other sites More sharing options...
jauninjais Posted May 31, 2006 Author Report Share Posted May 31, 2006 un kaada funkcija ir, lai noteiktu, to pashu, tikai datumu? Link to comment Share on other sites More sharing options...
Vebers Posted May 31, 2006 Report Share Posted May 31, 2006 Paskaties tur zemāk piemēru! Link to comment Share on other sites More sharing options...
jauninjais Posted May 31, 2006 Author Report Share Posted May 31, 2006 pamekleeju veel, veelos pajautaat, vai taadu vispaar izmanto: <input type="hidden" name="time" value="<?=NOW()?>"> Link to comment Share on other sites More sharing options...
Vebers Posted May 31, 2006 Report Share Posted May 31, 2006 (edited) Tāda funkcija kā NOW() iekš PHP neeksistē! EDIT: kautgan tādu funkciju var definēt, tāpēc noformulē savādāk savu jautājumu. Edited May 31, 2006 by MakaTaNaw Link to comment Share on other sites More sharing options...
jauninjais Posted May 31, 2006 Author Report Share Posted May 31, 2006 nu tjipa taa funkcija now jau buus datums un tad vnk submitojot ieraxtiis to datubaazee Link to comment Share on other sites More sharing options...
Kavacky Posted May 31, 2006 Report Share Posted May 31, 2006 Kaut kāda debīla pieeja. Tev vajag laiku, kad es atveru formu, ko es varu izdarīt šodien, bet nosūtīt aizparīt, vai arī laiku, kad reāli kaut ko izdara? Ja pēdējo, tad nevajag nekādus mistiskus laukus formā ar laiku veidot, bet pie datu apstrādes paķert time() un darīt, ko nu vajag. Link to comment Share on other sites More sharing options...
jauninjais Posted May 31, 2006 Author Report Share Posted May 31, 2006 a kas ar to mysql pie taa text varchar, tur arii date ir, ar vinju arii var kaut kaa uzlikt? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 31, 2006 Report Share Posted May 31, 2006 jauninjais --> ko mocies? Izveido DB lauku ar tipu DATETIME (nevis char vai varchar) un vadot iekshaa izmanto MYSQL f-ju NOW() viss ... tev tiks ievadiits konkreets laiks ar precizitaati liidz sek... 2 variants izmantot lauku TIMESTAMP tad vispaar nekas nav jaavada ;) tikai tas apdeitosies vienmeer tiko izdariisi taajaa ierakstaa kaadu labojumu Link to comment Share on other sites More sharing options...
jauninjais Posted May 31, 2006 Author Report Share Posted May 31, 2006 labi, lai iet datetime, paldies visiem ;) Link to comment Share on other sites More sharing options...
direktors Posted June 4, 2006 Report Share Posted June 4, 2006 ar search'u izmeklējos, palasīju tēmas par time(), bet netiku skaidrs.. ja man ir ar time() iegūts laiks, piem., 1149448562, tad kā es vēlāk varu viņu izteikt formātā gads:mēnesis:diena stunda:minūte? kā to panākt? Link to comment Share on other sites More sharing options...
Kristabs Posted June 4, 2006 Report Share Posted June 4, 2006 echo date('d:m:Y H:i', $tavsLaiks); Link to comment Share on other sites More sharing options...
direktors Posted June 4, 2006 Report Share Posted June 4, 2006 šis der. paldies. Link to comment Share on other sites More sharing options...
Recommended Posts