摘要:
select * from tb_user where fid IN (10,33,22,76,13,44) order by FIND_IN_SET(fid,'10,33,22,76,13,44');select * from tb_user where fid IN (10,33,22,76,13,44) order by field(fid,10,33,22,76,13,44); 阅读全文
摘要:
1 $startdate=strtotime("2009-9-5");2 $enddate=strtotime("2009-9-18"); 3 $days=round(($enddate-$startdate)/3600/24) ;4 echo $days; 阅读全文