Mysql function Advanced skills in PHP programming - using Mysql function

WBOY
Release: 2016-07-29 08:34:44
Original
1197 people have browsed it

Although PHP provides us with many functions, some things are still not very convenient to deal with. For example, the date and time functions provided by PHP are very limited. Mysql provides us with many such functions. Can I use Mysql functions to process PHP programs? The author 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;
?>
By analogy, we can also use other functions provided by Mysql during the programming process.
Of course, please check the manual for the functions provided by Mysql and their usage.
Please correct me if I am inappropriate! L Author email: fancao0515@0451.com
fancao0515@21cn.com
[The copyright of this article is owned by the author and Oso.com, if you need to reprint, please indicate the author and the source]

The above introduces the advanced skills of Mysql function PHP programming - using Mysql functions, including the content of Mysql functions. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template