如何根据服务器在php codeigniter中的当地时间存储出价? 所以每次用户输入出价时,php都会使用microtime函数来存储它?以microtime存储出价
函数来创建($ user_bid){
$this->db->set('bid', $user_bid);
$this->db->set('microtime'=>microtime(TRUE)));
$this->db->insert('products',array('microtime'=>microtime(true)));
$query= $this->db->insert('products');
$this->load->view('bidding');
}}
[你试过什么?](http://www.whathaveyoutried.com/)参见[请咨询](http://stackoverflow.com/questions/ask-advice)。 – 2013-02-22 18:55:19
你问哪一部分?如何生成microtime价值或如何存储它?无论哪种方式,显然你没有自己研究过这个问题。 – 2013-02-22 19:09:28
我已经尝试了上面的代码,它插入了出价,但没有时间出价。我希望它存储出价的时间 – user2040859 2013-02-22 19:27:23