$minTime = "Select MIN(categoryTime) FROM List WHERE personStatus='Atendiendo' AND depName='Admisiones'";
$Time = mysqli_query($con,$minTime);
echo "<table>
<tr>
<th>Main Record</th>
<th>Tiempo Categoria</th>
<th>Tiempo Estimando</th>
<th>Time IN </th>
</tr>";
while($min = mysqli_fetch_array($Time))
{
echo "<tr>";
echo "<td>" . $min['categoryTime'] . "</td>";
echo "<td>" . $min['categoryTime'] . "</td>";
echo "<td>" . $min['categoryTime'] . "</td>";
echo "<td>" . $min['categoryTime'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($con);
如果我删除了MIN()
函数,则查询完美无缺...
如果我删除Min()
功能,查询将起作用。我试过Least()
没有成功。
答案 0 :(得分:0)
这里有几个问题。
然后将php数组列引用更改为$ min ['minCat']
HTH