I dont want to store the datetime in a diffrent format...
I want to edit them on every INSERT UPDATE or SELECT
INSERT 20.01.2010 --> 2010-01-20
SELECT 2010-01-20 --> 20.01.2010
so that I dont have to change it on every query.
User Profile
Collapse
-
the solution in PHP would be:
Code:echo file_get_contents('http://www.example.com/');
So if there is a link to a file on the site with the URL example.com the browser would try to get it from there... and fail because of the filter
A solution could be setting up a dynamic DNS... if the filter is name base
...Leave a comment:
-
Mysql DATETIME
I dont really have a problem, but I want to make my code faster and prettier.
I have some tables with DATETIME in it.
They have the std format %Y-%m-%d %H:%i:%s
I need them to be in %d.%m.%Y %H:%i format.
I tried to fix it with the server variable "datetime_forma t".
After reading a lot in mysql doc I found out that:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.... -
There are rainbow tables but I guess that the original string is too long for that...Leave a comment:
-
How to access stdClass
Hello!
My var_export() from $object says:
Code:stdClass::__set_state(array( 'event_id' => '21', 'test' => 5, 'anode' => NULL, ))
How can I do that?
No activity results to display
Show More
Leave a comment: