I would like to pass a MySQL Datetime value like below in a site URL which is build using Codeigniter.
So the datetime value is e.g.
2012-05-04 07:41:45
And I want it to be passed in a site URL using some king of encoding or string conversion.
As I have already tried using php urlencode() function but it is not working.
The reason to pass this in URL is because I am querying some records from database related to that Datetime. So I must pass it as an Argument to Controller and for that I must pass it under URL.
Any suggestion?
Thanks in advance.
Easy: