我有一个疑问
$sql="SELECT mstEmp.empname,mstEmp.cardno, InDate, dailyattendance.InTime,dailyattendance.OutTime, mstEmp.teamtype FROM mstEmp left JOIN dailyattendance ON (InDate BETWEEN '$from' AND '$to' ) AND (dailyattendance.HolderName = mstEmp.empname ) WHERE mstEmp.teamtype = '$chk' ORDER BY InDate DESC";
现在当我以 print_r($row) 运行它时,它给我的数组为 [0]=absbd [1]=34 [2]= [3]= [4]= 现在我想要 [2] 这是要显示的日期日期,但它给了我垃圾价值。