Welcome Guest, Not a member yet? Register   Sign In
How to save date type?
#1

[eluser]Unknown[/eluser]
Hello every body,
sorry for my poor english, and poor question Big Grin
I'm new in code igniter.

My Question is:

How to save date data type from my view to database with form_helper approach?

I saw the movie tutorial by Derek, about making blog in 20 minutes. Unfortunately, in there, no example about date type (like input birth date, etc). Can some one help me?

Thank you.
#2

[eluser]insub2[/eluser]
[quote author="Abdellah Al-Arief" date="1258460321"]Hello every body,
sorry for my poor english, and poor question Big Grin
I'm new in code igniter.

My Question is:

How to save date data type from my view to database with form_helper approach?

I saw the movie tutorial by Derek, about making blog in 20 minutes. Unfortunately, in there, no example about date type (like input birth date, etc). Can some one help me?

Thank you.[/quote]

Well, you can use the MySQL timestamp. There is a bunch of stuff in PHP to change time and date formats. Check out the manual: http://php.net/manual/en/index.php

There are probably a handful of tutorials about using timestamps and php etc. that you can find using Google.

That should give you a pretty god start.




Theme © iAndrew 2016 - Forum software by © MyBB