Home > php教程 > php手册 > body text

f方法实现流水号功能

WBOY
Release: 2016-06-07 11:43:42
Original
1465 people have browsed it

f方法实现流水号功能,每天从001开始 得到的流水号为日期+三位数:20131011001
$fdate=F("FDATE");<br>         $endtoday=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1; <br>         if($fdate['time'] != $endtoday)<br>             {$fdate['time']=$endtoday;<br>              $fdate['code']='1';<br>             }<br>         if($fdate['code']  999)<br>             {$fdate['code']='1';<br>             }<br>                 <br>         $date['orderstatus'] = '1';<br>         $date['orderno'] =date('Ymd').str_pad($fdate['code'],3,"0",STR_PAD_LEFT);<br>         $fdate['code'] =$fdate['code'] + 1;<br>         F("FDATE",$fdate);

AD:真正免费,域名+虚机+企业邮箱=0元

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template