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元