MySQL function PHP Programming advanced techniques--the use of MySQL function

Source: Internet
Author: User
Tags mysql functions
Although PHP provides us with a lot of functions, some things are not very convenient to deal with. For example, the date-time functions provided by PHP are limited. MySQL provides us with a number of such functions. Is it possible to use MySQL functions to handle PHP programs? The author has made the following attempts.
$data _time= "1998-12-31 23:59:59";
$c
$query _id=mysql_query ("Select Date_add (' $data _time ', INTERVAL 1 year)", $connect _id);
$data _time=mysql_result ($query _id,0);
Mysql_close ($connect _id);
echo $data _time;
?>
Extrapolate, we can also take advantage of other functions provided by MySQL during the programming process.
Of course, the functions provided by MySQL and their usage will be available for you to check out the manuals.
Please correct me if you are not in the wrong place
Author email:fancao0515@0451.com
Fancao0515@21cn.com
"The copyright of this article is owned by the author and house Orso near net, if need to reprint, please specify the author and source"

The above describes the MySQL function PHP programming advanced techniques-the use of MySQL functions, including the contents of the MySQL function, I hope to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.