如何根據服務器在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