aika Posted June 13, 2009 Report Share Posted June 13, 2009 (edited) Pielabojiet mani, ja es kļūdos, taču man liekas ka pie šāda koda mysql_query("insert into test_table ('aa') values ( '". date("Y-m-d H:i:s", time())."')"); // bb lauks: timestamp ON UPDATE CURRENT_TIMESTAMP $result = mysql_query("select * from test_table "); print "<br>tabulaa ierakstiits laiks:".mysql_result($result,0,"aa"); print "<br>current timestamp laiks:".mysql_result($result,0,"bb"); šīm vērtībām būtu jābūt vienādām: tabulaa ierakstiits laiks:2009-06-13 11:20:04 current timestamp laiks:2009-06-13 11:20:53 hosteris apgalvo ka viņiem laiki uz abiem serveriem esot sinhronizēti! Laiks mainīt hosteri? :) Edited June 13, 2009 by aika Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.