⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Automatic User/Date insertion



clausanoid
  • profile picture
  • Member

Posted 20 May 2013 - 23:28 PM

Hi guys! do anybody knows how i can automate a user/date insertion? i want to make a table for register user logins and actions...

also do you know how i can retrieve the user name in grocery crud?

Thanks in advance for the help

 

 

 

 

 

 

 

P.D dont see my horrible grammar i am not a native speaker  :)


heruprambadi
  • profile picture
  • Member

Posted 21 May 2013 - 02:03 AM

i think it's not groceryCRUD function, but.. try to change your defaul value in database field to CURRENT_TIMESTAMP.


davidoster
  • profile picture
  • Member

Posted 21 May 2013 - 08:12 AM

Grocery CRUD is a library for CRUD. It doesn't provide neither user data nor ways to retrieve user data.

If you use a library for user authentication like ion_auth it will be easier.

For the date part, add a field on your table with the following details,

yijuWNJ.png