
- Forum
- Programming Talk
- PHP
- In how many ways we can retrieve the date in the result set of mysql using PHP?
In how many ways we can retrieve the date in the result set of mysql using PHP?
This is a discussion on In how many ways we can retrieve the date in the result set of mysql using PHP? within the PHP forums, part of the Programming Talk category; hai i want a reply for this ...... plzzzzzzzz...
-
07-10-2007, 04:39 AM #1
- Join Date
- Jul 2007
- Answers
- 1
In how many ways we can retrieve the date in the result set of mysql using PHP?
hai i want a reply for this ......
plzzzzzzzz
-
07-13-2007, 06:48 PM #2
- Join Date
- Jul 2007
- Location
- Birmingham-UK
- Answers
- 12
It matters on how you want to call the date using php from Mysql, if i do understand what you are asking for.
For example acquiring a unix timestamp that represents the current date and time,
In php, use time()
in MySQL use UNIX_TIMESTAMP()
You could format the date using in PHP use date(), IN MYSQL, use DATE_FORMAT()
If you are interested in all the ways to do that then i can't give you a definite answer as to how "how many ways"

Reply With Quote





