Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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...

  1. #1
    gollagaviraj is offline Junior Member Array
    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


  2. #2
    Larry Cumber is offline Junior Member Array
    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"


Latest Article

Network Security Risk Assessment and Measurement

Read More...