In summary, what i've learnt from this exercise are:
- writing custom function for buat_sendiri module; this has nothing to do with hook() functions.
- Using php time functions; such as getDate(), mktime(hr, min, sec, month, day, year), time()
- *** most important command - Using db_select() class. the usage is => db_select('table_name','alias')->fields('alias',array('table_field')->condition('table_field',value)->orderBy('table_field','ASC/DESC')->execute(). an array variable should be assigned to db_select()
Below is the doc on getdate() that i extracted from php.net. The values return are used in mktime().
.
No comments:
Post a Comment