Kashelz Posted May 18, 2004 Report Share Posted May 18, 2004 Sveiki, Nu mani interesee kaa ar PHP var ievietot datumu, kjipa ir izveidota lapele, bet gribaas, lai lapas augshpusee raadaas dienas nosaukums, meenesis, gads :) Esmu skatijies attieciigaas komandas, bet taa issti nestraadaa, varbuut kaads var ieposteet kaa iisti ir jaaraksta lai tas viss straadaatu ??? Link to comment Share on other sites More sharing options...
bubu Posted May 19, 2004 Report Share Posted May 19, 2004 mosh vareeji jau pateikt, kas konkreeti nestraadaa! ko esi meegjinaajis, un kas tev ir sanaacis, lai vareetu tev pateikt, kur tu kljuudies, nevis lai viss priekshaa buutu jaapasaka. ja php gribi izvadiit datumu, tad skaties manuaalii par datuma f-jaam: http://lv.php.net/manual/en/ref.datetime.php tur var atrast fju, kas formatee datumu: http://lv.php.net/manual/en/function.date.php, tai parametros jaanodod kaa grib noformateet, piemeeram, ja gribi redzeet formaataa diena-meenesis-gads, tad raksti: echo date("d-m-Y"); un viss. vai tad manuaali gruuti palasiit bija? Link to comment Share on other sites More sharing options...
rnc Posted May 19, 2004 Report Share Posted May 19, 2004 Ja Tu gribi tekošu laiku, t.i., lai visu laiku tas skaitītos uz priekšu kamēr lietotājs ir lapā, tad Tev noteikti būs jāizmanto JavaScript, jo PHP savu skriptu apstrādā servera pusē un atsūta klientam. Link to comment Share on other sites More sharing options...
jb4 Posted May 19, 2004 Report Share Posted May 19, 2004 http://paste.php.lv/877/nonum Link to comment Share on other sites More sharing options...
bubu Posted May 19, 2004 Report Share Posted May 19, 2004 Ja Tu gribi tekošu laiku, t.i., lai visu laiku tas skaitītos uz priekšu kamēr lietotājs ir lapā, tad Tev noteikti būs jāizmanto JavaScript, jo PHP savu skriptu apstrādā servera pusē un atsūta klientam. tika tachu prasiits par datumu nevis laiku Link to comment Share on other sites More sharing options...
Kashelz Posted May 19, 2004 Author Report Share Posted May 19, 2004 Nu redziet man tas viss te vajadziigs OpenTable(); echo "<table border=\"0\"><tr><td rowspan=\"2\">" ."<a href=\"index.php\"><img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\""._WELCOMETO." $sitename\" align=\"left\"></a></td>" ."<td align=right width=100%>" ."<form action=\"modules.php?name=Search\" method=\"post\">" ."<font class=\"content\" color=\"#000000\"><b>"._SEARCH." </b>" ."<input type=\"text\" name=\"query\" size=\"14\"></font></form>" ."</td></tr><tr>" //TE, shajaa vietaa VAJAG TO DATUMU ."<td align=\"right\" valign=\"bottom\" width=\"100%\">" ."<font class=\"content\"><b>" ."<A href=\"/\">Sākums</a> · <A href=\"modules.php?name=Topics\">Temati</a> · " ."<A href=\"modules.php?name=Downloads\">Faili</a> · <A href=\"modules.php?name=Your_Account\">Tavs lietotājs</a>" ." · <A href=\"modules.php?name=Forums\">Forums</a> · <A href=\"modules.php?name=Top\">Top 10</a>" ."</b></font></td></tr></table>\n"; CloseTable(); $public_msg = public_message(); echo "$public_msg<br>"; echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"99%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n" ."<tr><td bgcolor=\"#ffffff\" valign=\"top\">\n"; blocks(left); echo "</td><td><img src=\"themes/NukeNews/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\" valign=top>\n"; } Luudzu paliidziet, ieprieksheejais nekas nepaliidz, man datums tabulaa jaadabuun Link to comment Share on other sites More sharing options...
hu_ha Posted May 19, 2004 Report Share Posted May 19, 2004 nu tad "te vajag datumu" liec ko tev raadiija: echo date(d.m.Y); p.s. buutu laiks pamaaciities pie reizes arii css burviibu Link to comment Share on other sites More sharing options...
Recommended Posts