peacock

Chim công

how to get the value selected from drop down box in grails

một tài liệu hay về grails

Lang thang tìm được tài liệu này hay:
Grails Tutor (AJAX)
Có thể tìm hiểu thêm các nội dung khác ở trang này

Working with date time in PHP and MySQL

I worked with date time data in PHP and MySQL 
1. Format at view: 
 a. Loading from the database: YYYY-mm-dd HH:mm:ss 
 b. Clicking the datetimepicker, and change to: yyyy/MM/dd hh:mm:ss 
2. Save it into database with date("Y-m-d H:i:s", strtotime($this->input->post('created_date'))
3. Update datetime field in table:
For example:
UPDATE model SET first_published='2016-03-06 16:14:04' WHERE id=9;
See references and examples: MySQL Tutorial - Date

mysql commands used commonly

CREATE USER 'dbadmin'@'localhost' IDENTIFIED BY 'admin';
UPDATE user SET real_name='Tung Nguyen' WHERE username='nvntung';


© 2013 - 2026. Tung NGUYEN. Using CI version: 3.0.2 | Page rendered in 0.0243 seconds.