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.